FSoftObjectPtr is a type of weak pointer to a UObject, that also keeps track of the path to the object on disk. 更多...
#include <SoftObjectPtr.h>
类 FSoftObjectPtr 继承关系图:Public 成员函数 | |
| FORCEINLINE | FSoftObjectPtr () |
| Default constructor, will be null | |
| FORCEINLINE | FSoftObjectPtr (const FSoftObjectPath &ObjectPath) |
| Construct from a soft object path | |
| FORCEINLINE | FSoftObjectPtr (const FSoftObjectPtr &Other) |
| Construct from another soft pointer | |
| FORCEINLINE | FSoftObjectPtr (const UObject *Object) |
| Construct from an object already in memory | |
| FORCEINLINE FString | GetAssetName () const |
| Returns assetname string, leaving off the /package/path. 更多... | |
| FORCEINLINE FString | GetLongPackageName () const |
| Returns /package/path string, leaving off the asset name | |
| UObject * | LoadSynchronous () const |
| Synchronously load (if necessary) and return the asset object represented by this asset ptr | |
| FORCEINLINE const FSoftObjectPath & | ToSoftObjectPath () const |
| Returns the StringObjectPath that is wrapped by this SoftObjectPtr | |
| FORCEINLINE FString | ToString () const |
| Returns string representation of reference, in form /package/path.assetname | |
Public 成员函数 继承自 TPersistentObjectPtr< FSoftObjectPath > | |
| FORCEINLINE UObject * | Get () const |
| Dereference the pointer, which may cause it to become valid again. 更多... | |
| FORCEINLINE UObject * | Get (bool bEvenIfPendingKill) const |
| Dereference the lazy pointer, which may cause it to become valid again. 更多... | |
| FORCEINLINE FSoftObjectPath & | GetUniqueID () |
| Non-const version of the above | |
| FORCEINLINE const FSoftObjectPath & | GetUniqueID () const |
| Gets the unique object identifier associated with this lazy pointer. 更多... | |
| FORCEINLINE bool | IsNull () const |
| Test if this can never point to a live UObject 更多... | |
| FORCEINLINE bool | IsPending () const |
| Test if this does not point to a live UObject, but may in the future 更多... | |
| FORCEINLINE bool | IsStale () const |
| Slightly different than !IsValid(), returns true if this used to point to a UObject, but doesn't any more and has not been assigned or reset in the mean time. 更多... | |
| FORCEINLINE bool | IsValid () const |
| Test if this points to a live UObject 更多... | |
| FORCEINLINE class UObject & | operator* () const |
| Dereference the pointer | |
| FORCEINLINE class UObject * | operator-> () const |
| Dereference the pointer | |
| FORCEINLINE void | operator= (const class UObject *Object) |
| Copy from an object pointer | |
| FORCEINLINE void | operator= (const FSoftObjectPath &InObjectID) |
| Copy from a unique object identifier | |
| FORCEINLINE void | operator= (const FWeakObjectPtr &Other) |
| Copy from an existing weak pointer, reserve IDs if required | |
| FORCEINLINE void | Reset () |
| Reset the lazy pointer back to the null state | |
| FORCEINLINE void | ResetWeakPtr () |
| Resets the weak ptr only, call this when ObjectId may change | |
| FORCEINLINE | TPersistentObjectPtr () |
| Default constructor, will be null | |
| FORCEINLINE | TPersistentObjectPtr (const FSoftObjectPath &InObjectID) |
| Construct from a unique object identifier | |
FSoftObjectPtr is a type of weak pointer to a UObject, that also keeps track of the path to the object on disk.
It will change back and forth between being Valid and Pending as the referenced object loads or unloads. It has no impact on if the object is garbage collected or not.
This is useful to specify assets that you may want to asynchronously load on demand.
|
inline |
Returns assetname string, leaving off the /package/path.
part