Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > UObject
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/SoftObjectPtr.h |
Include | #include "UObject/SoftObjectPtr.h" |
Syntax
template<class TClass>
class TSoftClassPtr
Remarks
TSoftClassPtr is a templatized wrapper around FSoftObjectPtr that works like a TSubclassOf, it can be used in UProperties for blueprint subclasses
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
TSoftClassPtr
(
const TSoftClassPtr& Other |
||
![]() |
TSoftClassPtr
(
TSoftClassPtr&& Other |
||
![]() |
TSoftClassPtr
(
const TSoftClassPtr< TClassA >& Other |
Construct from another soft pointer | |
![]() |
TSoftClassPtr
(
const UClass* From |
Construct from a class already in memory | |
![]() |
TSoftClassPtr
(
const FSoftObjectPath& ObjectPath |
Construct from a soft object path |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
UClass * | Get () |
Dereference the soft pointer |
![]() ![]() |
FString | GetAssetName () |
Returns assetname string, leaving off the /package/path part |
![]() ![]() |
FString | Returns /package/path string, leaving off the asset name | |
![]() ![]() |
uint32 | Hash function | |
![]() ![]() |
const FSoftObjectPath & | 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 * | 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 | ||
![]() ![]() |
const FSoftObjectPath & | Returns the StringObjectPath that is wrapped by this SoftObjectPtr | |
![]() ![]() |
FString | ToString () |
Returns string representation of reference, in form /package/path.assetname |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Dereference soft pointer to see if it points somewhere valid | ||
![]() ![]() |
bool | operator!=
(
const TSoftClassPtr& Rhs |
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 |
![]() |
TSoftClassPtr & | operator=
(
const TSoftObjectPtr< TClassA >& Other |
Copy from another soft pointer |
![]() |
TSoftClassPtr & | operator=
(
const TWeakObjectPtr< TClassA >& Other |
Copy from a weak pointer already in memory |
![]() |
void | operator=
(
const FSoftObjectPath& ObjectPath |
Copy from a soft object path |
![]() |
void | Copy from a class already in memory | |
![]() |
TSoftClassPtr & | operator=
(
TSoftClassPtr&& Other |
|
![]() |
TSoftClassPtr & | operator=
(
const TSoftClassPtr& Other |
|
![]() ![]() |
bool | operator==
(
const TSoftClassPtr& Rhs |
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 |
Typedefs
Name | Description |
---|---|
ElementType |