event on map load/switch
Hi, I write a plugin which add some components to existing actors and reacts if they get unregistered. Now I need to detect if the user switches the map and do some work before they get unregistered. I can not place the code in the OnUnregister() of the components, because I only want to react if the map(or level) gets switched.
I tried to place a dummy actor in the current map and listen on its BeginDestroy(). This works, but would be useful only, if this is called before any other actor component gets unregistered. This does not happen.
Here a debug log which should explain the point in time to react:
How to get in this tiny time slot after map switch begins?
Thanks for any help, solarisx
How about using FWorldDelegates::LevelRemovedFromWorld delegate?
answered Jun 01 '17 at 02:37 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here