Construction script: Is it possible to create an instance of Texture2D or aa RenderTarget2D dynamically?
My BP has a variable of type RenderTarget2D and anoterh of type Texture2D. I DO NOT want to set them to default values. Instead I want to create those in memory at initialization phase. The idea is I waant ot manipulate the Texture2D and RenderTarget manually per instance of the Blueprint. So I cannot point them to existing assets in content browser.
What I want to achieve: My blueprints has a SceneCapture2D component. This should render its output onto a RenderTarget, whcih will be used later on. I know I can create a rendertarget in content browser and put it as target for SceneCapture component. But the problem is I will have more than 1 instance of this BP and they will overwrite the RenderTarget. I need 1 render target per BP. So that is why I created a variable of type RenderTraget2D within the blue print. My aim was to instantiate it within construction script. But I dont know how
Is there a way to achieve it?
Any alternate methods are also apreciated.
Youre on the right track though construction script is the way to have things changeable during level or layout design.
Ok so quick step through this process.
now if you drag this into your level you will see in its detail panel a way to change it value and if you have more than just one each one can have a different value.
answered Jun 01 '14 at 04:43 AM
here is the way doing it dynamically:
answered Nov 24 '17 at 04:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here