I think the most direct way to use AddToRoot and not crash the engine is use FGameDelegates::Get().GetEndplayMapDelegate, and bind a fuction to it, in that function , you call the RemoveFromRoot(), I’v tried that way, at lease it works for Editor play. But i think it’s not a elegant way.
1 Like