Hi!
When are the UObjects collected by the garbage collector. Is it safe to create an UObject and passing it to a method before it’s being assigned to an UPROPERTY pointer or must you directly assign it to an UPROPERTY pointer?
Hi!
When are the UObjects collected by the garbage collector. Is it safe to create an UObject and passing it to a method before it’s being assigned to an UPROPERTY pointer or must you directly assign it to an UPROPERTY pointer?
if all that happens in less then 1 second it should be ok, GC is cleaning every 60 sec if i’m not mistaken
Sounds a bit dangerous since with wrong timing that would probably destroy almost any game. I really hope they don’t run the GC during the ticking phase but it seems like this knowledge is rare. I can’t take such risks for production code.