Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/UObject/SoftObjectPtr.h |
Include |
#include "UObject/SoftObjectPtr.h" |
template<class T>
struct TSoftObjectPtr
TSoftObjectPtr is templatized wrapper of the generic FSoftObjectPtr, it can be used in UProperties
Name | Description | |
---|---|---|
|
TSoftObjectPtr() |
Default constructor, will be null |
|
TSoftObjectPtr ( |
Construct from another soft pointer |
|
TSoftObjectPtr ( |
Construct from a moveable soft pointer |
|
TSoftObjectPtr ( |
Construct from an object already in memory |
|
TSoftObjectPtr ( |
|
|
TSoftObjectPtr ( |
Construct from a nullptr |
|
TSoftObjectPtr ( |
Construct from a soft object path |
Name | Description | ||
---|---|---|---|
|
GetAssetName() |
Returns assetname string, leaving off the /package/path part |
|
|
GetLongPackageName() |
Returns /package/path string, leaving off the asset name |
|
|
uint32 |
GetPtrTypeHash() |
Hash function |
|
const FSoftO... |
GetUniqueID() |
Returns the StringObjectPath that is wrapped by this SoftObjectPtr |
|
bool |
IsNull() |
Test if this can never point to a live UObject |
|
bool |
IsPending() |
Test if this does not point to a live UObject, but may in the future |
|
bool |
IsValid() |
Test if this points to a live UObject |
|
T * |
LoadSynchronous() |
Synchronously load (if necessary) and return the asset object represented by this asset ptr |
|
void |
Reset() |
Reset the soft pointer back to the null state |
|
void |
ResetWeakPtr() |
Resets the weak ptr only, call this when ObjectId may change |
|
void |
Serialize ( |
|
|
const FSoftO... |
ToSoftObjectPath() |
Returns the StringObjectPath that is wrapped by this SoftObjectPtr |
|
ToString() |
Returns string representation of reference, in form /package/path.assetname |
Name | Description | ||
---|---|---|---|
|
operator bool() |
Dereference soft pointer to see if it points somewhere valid |
|
|
bool |
operator!= ( |
Compare soft pointers for inequality Caution: Two soft pointers might not be equal to each other, but they both might return nullptr |
|
bool |
operator!= ( |
Compare soft pointers for inequality Caution: Two soft pointers might not be equal to each other, but they both might return nullptr |
|
T & |
operator*() |
Dereference the soft pointer |
|
TSoftObjectP... |
operator= ( |
Copy from a weak pointer to an object already in memory |
|
TSoftObjectP... |
operator= ( |
Copy from another soft pointer |
|
TSoftObjectP... |
operator= ( |
Copy from a soft object path |
|
TSoftObjectP... |
operator= ( |
Assign from a nullptr |
|
TSoftObjectP... |
operator= ( |
|
|
TSoftObjectP... |
operator= ( |
Copy from an object already in memory |
|
bool |
operator== ( |
Compare soft pointers for equality Caution: Two soft pointers might not be equal to each other, but they both might return nullptr |
|
bool |
operator== ( |
Compare soft pointers for equality Caution: Two soft pointers might not be equal to each other, but they both might return nullptr |
|
T * |
operator->() |
Dereference the soft pointer |
Name |
Description |
---|---|
ElementType |
Name | Description | ||
---|---|---|---|
|
T * |
Get() |
TAssetSubclassOf was renamed to TSoftClassPtr |