Unreal Engine’s C++ is odd. Unreal Engine has its own garbage collection, and it periodically eats my objects and crashes. Sometimes I need to create objects dynamically, and they are floating from one entity to another. For example, a mob has items inside, then I loot them and items go in the inventory, then mobs despawn, and after a couple of minutes, items get eaten by the garbage collector. One way to combat this is to use Unreal Engine containers like TArray and mark them as UPROPERTY. If you know a better way, let me know.

Next - Previous