TSoftObjectPtr::SoftObjectPtr
#include "UObject/SoftObjectPtr.h"
Access: private
Description
The underlying untyped FSoftObjectPtr that stores both the soft path string and a cached weak reference to the loaded UObject. All TSoftObjectPtr<T> operations delegate to this member.
Caveats & Gotchas
- • Because this member is private, serialization of TSoftObjectPtr goes through the Serialize method which forwards to the FSoftObjectPtr — do not attempt to serialize the raw member directly via memory tricks.
- • The cached weak pointer inside FSoftObjectPtr can become stale independently of the path; after garbage collection the cache is not automatically invalidated until the next Get() call.
Signature
FSoftObjectPtr SoftObjectPtr Tags
Version History
Introduced in: 4.17
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?