Issues with sceneCaptureComponent2D in compiled version of game

Hi!
-I am using a construction-script to place a SceneCaptureComponent2d on my wall-actors.
-The SceneCaptureComponent2d will render some geo blocking my window-actors
-The texture will result in white squares that is applied to the mask on the wall-texture
-once that is rendered the window-blocker-geo is hidden and we can see the background through the windows.

buuuuuuuut.
This only works in editor.
In the compiled version (win64) it does not.

Any clues?

Hello. Can you provide the part of the code where you setting the primitives that has to be rendered?

Paramjot sent me the solution

The answer is simple. The code should NOT be run in construction-script but rather at Event Begin Play.
Thanks Paramjot!