| TPersistentObjectPtr
|
Module |
|
Header |
/Engine/Source/Runtime/CoreUObject/Public/UObject/SoftObjectPtr.h |
Include |
#include "UObject/SoftObjectPtr.h" |
struct FSoftObjectPtr : public TPersistentObjectPtr< FSoftObjectPath >
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.
Name | Description | |
---|---|---|
|
FSoftObjectPtr() |
Default constructor, will be null |
|
FSoftObjectPtr ( |
Construct from another soft pointer |
|
FSoftObjectPtr ( |
Construct from a soft object path |
|
FSoftObjectPtr ( |
Construct from an object already in memory |
Name | Description | ||
---|---|---|---|
|
UObject *... |
Get() |
Overridden to deal with PIE lookups |
|
GetAssetName() |
Returns assetname string, leaving off the /package/path. part |
|
|
GetLongPackageName() |
Returns /package/path string, leaving off the asset name |
|
|
UObject *... |
LoadSynchronous() |
Synchronously load (if necessary) and return the asset object represented by this asset ptr |
|
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 | ||
---|---|---|---|
|
const FSoftO... |
ToStringReference() |
ToStringReference was renamed to ToSoftObjectPath |