How to use ScreenCaptureComponent2D in Actors

I have an actor that is dynamically constructed in Construction script and when is done I want to save its 2d thumbnail in a variable so I can display it later.

I’m trying to use ScreenCaptureComponent2D but this seems that it needs the Texture Target to be already set in the component details. The issue is that for each actor it is using the same Texture Target and I want to be different for each actor.

How can I save different Texture from Texture Target for each individual actor upon construct ?

135910-capture1.jpg

You can’t get access to thumbnails in appropriate way. So what I did in my Open World Kit is spawning an actor, adding 2D capture to take a picture of that actor and after that you will be able to use a texture in your widgets.

Because I can not spawn actors inside construction script I had the ScreenComponent as child and it works to capture only if the texture render is set from details panel, just that all actors will use the same texture render asset and I want each one to be different. I tried now to create a ScreenComponent thro spawning a child actor but that seams to render just a white texture.

You always could create render target texture after. I used my own function to do so, but I guess, you can find something similar in Rama’s Victory plugin.

Here I set texture target of a screen capture component. I’ve got an actor same as you have.