My project is creating a texture at runtime.
I used AddToRoot() to avoid garbage collection.
I have created an actor that collects the texture at runtime, and when the BeginEnd event Is called, I use ConditionalBeginDestroy() to destroy the texture.
There was no problem keeping the game play on and off in this state. However, when I exit the editor, a crash occurs. I think the problem is probably with the GC side.
Is there an exact cause for this problem or is there a way I can solve it?
Is your texture defined as a UPROPERTY() in code? If so it should handle GC automatically without needing to be destroyed manually. Try removing the call to ConditionalBeginDestroy() and let me know if the crash continues. If so, please include the callstack and log files from the crash for additional information.