![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SoftObjectPtr.h>
Public Types | |
| using | ElementType = T |
Friends | |
| template<class U > | |
| struct | TSoftObjectPtr |
TSoftObjectPtr is templatized wrapper of the generic FSoftObjectPtr, it can be used in UProperties
| using TSoftObjectPtr< T >::ElementType = T |
|
default |
|
default |
|
default |
|
default |
|
inline |
Construct from another soft pointer
|
inline |
|
inline |
Construct from a moveable soft pointer
|
inline |
|
inline |
Construct from an object already in memory
|
inline |
|
inline |
Construct from a TObjectPtr which may or may not be in memory.
|
inline |
|
inline |
Construct from a nullptr
|
inlineexplicit |
Construct from a soft object path
|
inlineexplicit |
| T * TSoftObjectPtr< T >::Get | ( | ) | const |
Dereference the soft pointer.
Not directly inlined on purpose so compiler have the option of not inlining it. (and it also works with extern template)
|
inline |
Returns assetname string, leaving off the /package/path part
|
inline |
Returns /package/path name, leaving off the asset name
|
inline |
Returns /package/path string, leaving off the asset name
|
inline |
Hash function
|
inline |
Returns the StringObjectPath that is wrapped by this SoftObjectPtr
|
inline |
|
inline |
|
inline |
|
inline |
Attempts to asynchronously load the object referenced by this soft pointer. This is a wrapper around the LoadAsync function in SoftObjectPath, and the delegate is responsible for validating it loaded the correct type
| InCompletionDelegate | Delegate to be invoked when the async load finishes, this will execute on the game thread as soon as the load succeeds or fails |
| InOptionalParams | Optional parameters for async loading the asset |
|
inline |
Synchronously load (if necessary) and return the asset object represented by this asset ptr
|
inlineexplicit |
Dereference soft pointer to see if it points somewhere valid
|
inline |
Dereference the soft pointer
|
inline |
Dereference the soft pointer
|
inline |
Copy from a TObjectPtr which may or may not be in memory.
|
inline |
|
default |
|
inline |
Copy from a weak pointer to an object already in memory
|
inline |
|
inline |
Copy from a soft object path
|
default |
|
inline |
Copy from another soft pointer
|
inline |
|
inline |
Assign from a nullptr
|
inline |
Copy from an object already in memory
|
inline |
|
inline |
Compare soft pointers for equality Caution: Two soft pointers might not be equal to each other, but they both might return nullptr
| Other | soft pointer to compare to |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Reset the soft pointer back to the null state
|
inline |
Resets the weak ptr only, call this when ObjectId may change
|
inline |
|
inline |
Returns the StringObjectPath that is wrapped by this SoftObjectPtr
|
inline |
Returns string representation of reference, in form /package/path.assetname