UObject outer and GC
I'm trying to understand what an UObject's 'outer' really means, and how it affects GC. From my understanding, the only GC guarantee seems to be:
What I'm trying to understand is what effect the UObject's 'outer' actually has regarding GC. I was having some issues where:
So it seems that even though we set B as the outer of A, there isn't a guarantee that A will be deleted before B, and the cleanup check will fail as it can't find A's outer. So what does 'outer' actually do?
What we were trying to accomplish was the creation of local scope UObjects. We seem to have fixed it by not specifying the outer, and letting it default to GetTransientPackage() - however, without fully understanding what TransientPackage is, I don't feel like this is a proper fix and might just be working by luck in the GC run order.
Any clarification or help would be appreciated :)
asked Mar 01 '17 at 05:10 PM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here