Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/UObject/SoftObjectPtr.h |
Include |
#include "UObject/SoftObjectPtr.h" |
template<class TClass>
class TSoftClassPtr
TSoftClassPtr is a templatized wrapper around FSoftObjectPtr that works like a TSubclassOf, it can be used in UProperties for blueprint subclasses
Name | Description | |
---|---|---|
|
TSoftClassPtr() |
Default constructor, will be null |
|
TSoftClassPtr ( |
Construct from another soft pointer |
|
TSoftClassPtr ( |
Construct from a class already in memory |
|
TSoftClassPtr ( |
Construct from a soft object path |
Name | Description | ||
---|---|---|---|
|
UClass * |
Get() |
Dereference the soft pointer |
|
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 |
|
UClass * |
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 |
|
UClass & |
operator*() |
Dereference the soft pointer |
|
TSoftClassPt... |
operator= ( |
Copy from another soft pointer |
|
TSoftClassPt... |
operator= ( |
Copy from a weak pointer already in memory |
|
void |
operator= ( |
Copy from a soft object path |
|
void |
operator= ( |
Copy from a class 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 |
|
UClass * |
operator->() |
Dereference the soft pointer |
Name |
Description |
---|---|
ElementType |