![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SoftObjectPtr.h>
Public Types | |
| using | ElementType = TClass |
Friends | |
| template<class TClassA > | |
| class | TSoftClassPtr |
TSoftClassPtr is a templatized wrapper around FSoftObjectPtr that works like a TSubclassOf, it can be used in UProperties for blueprint subclasses
| using TSoftClassPtr< TClass >::ElementType = TClass |
|
default |
|
default |
|
default |
|
default |
|
inline |
Construct from another soft pointer
|
inline |
Construct from a class already in memory
|
inlineexplicit |
Construct from a soft object path
|
inline |
Dereference the soft pointer
|
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 |
Compare soft pointers for inequality Caution: Two soft pointers might not be equal to each other, but they both might return nullptr
| Other | soft pointer to compare to |
|
inline |
Dereference the soft pointer
|
inline |
Dereference the soft pointer
|
inline |
Copy from a soft object path
|
default |
|
inline |
Copy from another soft pointer
|
inline |
Copy from a weak pointer already in memory
|
inline |
Copy from a class already in memory
|
default |
|
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 |
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