How to Change Static Mesh at Runtime from User Widget


I’m trying to make a preview for static meshes inside of my user widget. I have these three assets I’m using to achieve this. The ‘RecordingActor’ has a ‘SceneCaptureComponent2D’ with the texture target set to the ‘Preview’ asset. Inside of my user widget, I have an image set to ‘MaterialPreview’. The ‘MaterialPreview’ asset has a texture sample set to ‘Preview’. How can I get a reference to the ‘RecordingActor’ asset so that I can change the static mesh at runtime?