Worlds and scene components registration

Hi,

I have a scene component (an UProceduralMeshComponent) that I would like to add to a FPreviewScene (to shoot a screenshot of it) before adding it to my main world.

Since a component can only be in one world at a time, is it possible to do this without duplicating the component ? (something like “Register in preview world → Shoot → Unregister from preview world → Register in main world”)

Thanks,

Nicolas

Hi Nicolas,

This should be possible yes, but note that there may actually be more cost to tear down/re-register the component between worlds. It may be better from an efficiency standpoint to just duplicate the component for the preview world.

Hope this helps! -phil.