How to render an actor to a texture
I've spend whole eternity trying to figure out how to do a simple thing - render an actor to a texture? Not capture with UCaptureSceneComponent2D, but render in it's own environment.
I've found the old code: https://answers.unrealengine.com/questions/367205/custom-gameviewportclient-render-off-screen.html but it works only under Editor. I've tried to investigate Kismet's DrawMaterialToRenderTarget with following straight simple code:
, but it leaves me with a blank texture. And I could not find any example of using it. Also I've found a number of similar question with no answers, and I believe this one will queue in the row.
Is there anything to do such a simple task?
Follow this question
Once you sign in you will be able to subscribe for any updates here