Can obj=NewObject(outer) be garbage collected before "outer"?
Suppose I created instance MyObj with the code below inside my actor class and MyObj is not stored in UPROPERTY():
Does it establish Child-Parent relationship between MyObj and this, thus preventing MyObj from being garbage collected before the actor instance is GC'ed?
Does it works like in Qt library?
No, it does not prevent it, MyObj can be garbage collected before the outer (your actor) is.
Simply speaking, the child is going to held a reference to the actor through Outer, but the actor does not automatically hold a reference to the objects it's an outer of.
Follow this question
Once you sign in you will be able to subscribe for any updates here