Hello what is the main difference between TObjectPtr<> and raw pointer ? And does it matter which one I use ?
1 Like
Nevermind I figured it out. If someone is looking for the answer: It’s supports access tracking and optional lazy load behavior in editor builds. It stores either the address to the referenced object or (in editor builds) an index in the object handle table that describes a referenced object that hasn’t been loaded yet. It is serialized identically to a raw pointer to UObject. When resolved, its participation in garbage collection is identical to a raw pointer to a UObject.
2 Likes
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.