engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 友元 | 所有成员列表
TSoftClassPtr< TClass > 模板类 参考

TSoftClassPtr is a templatized wrapper around FSoftObjectPtr that works like a TSubclassOf, it can be used in UProperties for blueprint subclasses 更多...

#include <SoftObjectPtr.h>

Public 成员函数

FORCEINLINE UClass * Get () const
 Dereference the soft pointer 更多...
 
FORCEINLINE FString GetAssetName () const
 Returns assetname string, leaving off the /package/path part
 
FORCEINLINE FString GetLongPackageName () const
 Returns /package/path string, leaving off the asset name
 
FORCEINLINE const FSoftObjectPath & GetUniqueID () const
 Returns the StringObjectPath that is wrapped by this SoftObjectPtr
 
FORCEINLINE bool IsNull () const
 Test if this can never point to a live UObject 更多...
 
FORCEINLINE bool IsPending () const
 Test if this does not point to a live UObject, but may in the future 更多...
 
FORCEINLINE bool IsValid () const
 Test if this points to a live UObject 更多...
 
UClass * LoadSynchronous () const
 Synchronously load (if necessary) and return the asset object represented by this asset ptr
 
FORCEINLINE operator bool () const
 Dereference soft pointer to see if it points somewhere valid
 
FORCEINLINE UClass & operator* () const
 Dereference the soft pointer
 
FORCEINLINE UClass * operator-> () const
 Dereference the soft pointer
 
FORCEINLINE void operator= (const FSoftObjectPath &ObjectPath)
 Copy from a soft object path
 
template<class TClassA , class = decltype(ImplicitConv<TClass*>((TClassA*)nullptr))>
FORCEINLINE TSoftClassPtr & operator= (const TSoftObjectPtr< TClassA > &Other)
 Copy from another soft pointer
 
template<class TClassA , class = decltype(ImplicitConv<TClass*>((TClassA*)nullptr))>
FORCEINLINE TSoftClassPtr & operator= (const TWeakObjectPtr< TClassA > &Other)
 Copy from a weak pointer already in memory
 
FORCEINLINE void operator= (const UClass *From)
 Copy from a class already in memory
 
FORCEINLINE void Reset ()
 Reset the soft pointer back to the null state
 
FORCEINLINE void ResetWeakPtr ()
 Resets the weak ptr only, call this when ObjectId may change
 
FORCEINLINE const FSoftObjectPath & ToSoftObjectPath () const
 Returns the StringObjectPath that is wrapped by this SoftObjectPtr
 
FORCEINLINE FString ToString () const
 Returns string representation of reference, in form /package/path.assetname

 
FORCEINLINE TSoftClassPtr ()
 Default constructor, will be null
 
FORCEINLINE TSoftClassPtr (const FSoftObjectPath &ObjectPath)
 Construct from a soft object path
 
template<class TClassA , class = decltype(ImplicitConv<TClass*>((TClassA*)nullptr))>
FORCEINLINE TSoftClassPtr (const TSoftClassPtr< TClassA > &Other)
 Construct from another soft pointer
 
FORCEINLINE TSoftClassPtr (const UClass *From)
 Construct from a class already in memory
 

友元

FORCEINLINE friend uint32 GetTypeHash (const TSoftClassPtr< TClass > &Other)
 Hash function
 
FORCEINLINE friend bool operator!= (const TSoftClassPtr &Lhs, 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 更多...
 
FORCEINLINE friend bool operator== (const TSoftClassPtr &Lhs, 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 更多...
 

详细描述

template<class TClass = UObject>
class TSoftClassPtr< TClass >

TSoftClassPtr is a templatized wrapper around FSoftObjectPtr that works like a TSubclassOf, it can be used in UProperties for blueprint subclasses

成员函数说明

◆ Get()

template<class TClass = UObject>
FORCEINLINE UClass * TSoftClassPtr< TClass >::Get ( ) const
inline

Dereference the soft pointer

返回
nullptr if this object is gone or the soft pointer was null, otherwise a valid UClass pointer

◆ IsNull()

template<class TClass = UObject>
FORCEINLINE bool TSoftClassPtr< TClass >::IsNull ( ) const
inline

Test if this can never point to a live UObject

返回
true if this is explicitly pointing to no object

◆ IsPending()

template<class TClass = UObject>
FORCEINLINE bool TSoftClassPtr< TClass >::IsPending ( ) const
inline

Test if this does not point to a live UObject, but may in the future

返回
true if this does not point to a real object, but could possibly

◆ IsValid()

template<class TClass = UObject>
FORCEINLINE bool TSoftClassPtr< TClass >::IsValid ( ) const
inline

Test if this points to a live UObject

返回
true if Get() would return a valid non-null pointer

友元及相关函数文档

◆ operator!=

template<class TClass = UObject>
FORCEINLINE friend bool operator!= ( const TSoftClassPtr< TClass > &  Lhs,
const TSoftClassPtr< TClass > &  Rhs 
)
friend

Compare soft pointers for inequality Caution: Two soft pointers might not be equal to each other, but they both might return nullptr

参数
Othersoft pointer to compare to

◆ operator==

template<class TClass = UObject>
FORCEINLINE friend bool operator== ( const TSoftClassPtr< TClass > &  Lhs,
const TSoftClassPtr< TClass > &  Rhs 
)
friend

Compare soft pointers for equality Caution: Two soft pointers might not be equal to each other, but they both might return nullptr

参数
Othersoft pointer to compare to

该类的文档由以下文件生成: