A struct to hold important information about an assets found by the Asset Registry This struct is transient and should never be serialized
更多...
|
|
| FAssetData ()=default |
| | Default constructor
|
| |
|
| FAssetData (const FString &InLongPackageName, const FString &InObjectPath, FName InAssetClass, FAssetDataTagMap InTags=FAssetDataTagMap(), TArray< int32 > InChunkIDs=TArray< int32 >(), uint32 InPackageFlags=0) |
| | Constructor with a long package name and a full object path which might not be part of the package this asset is in.
|
| |
| | FAssetData (const UObject *InAsset, bool bAllowBlueprintClass=false) |
| | Constructor taking a UObject. 更多...
|
| |
| | FAssetData (FName InPackageName, FName InPackagePath, FName InAssetName, FName InAssetClass, FAssetDataTagMap InTags=FAssetDataTagMap(), TArray< int32 > InChunkIDs=TArray< int32 >(), uint32 InPackageFlags=0) |
| | Constructor building the ObjectPath in the form of InPackageName.InAssetName. 更多...
|
| |
|
UObject * | FastGetAsset (bool bLoad=false) const |
| | Returns the asset UObject if it is loaded or loads the asset if it is unloaded then returns the result
|
| |
|
UObject * | GetAsset () const |
| | Returns the asset UObject if it is loaded or loads the asset if it is unloaded then returns the result
|
| |
| UClass * | GetClass () const |
| | Returns the class UClass if it is loaded. 更多...
|
| |
|
FString | GetExportTextName () const |
| | Returns the name for the asset in the form: Class'ObjectPath'
|
| |
|
void | GetExportTextName (FString &OutExportTextName) const |
| | Populates OutExportTextName with the name for the asset in the form: Class'ObjectPath'
|
| |
|
FString | GetFullName () const |
| | Returns the full name for the asset in the form: Class ObjectPath
|
| |
|
void | GetFullName (FString &OutFullName) const |
| | Populates OutFullName with the full name for the asset in the form: Class ObjectPath
|
| |
|
FPrimaryAssetId | GetPrimaryAssetId () const |
| | Gets primary asset id of this data
|
| |
|
template<typename ValueType > |
| bool | GetTagValue (const FName InTagName, ValueType &OutTagValue) const |
| | Try and get the value associated with the given tag as a type converted value
|
| |
|
template<typename ValueType > |
| ValueType | GetTagValueRef (const FName InTagName) const |
| | Try and get the value associated with the given tag as a type converted value, or an empty value if it doesn't exist
|
| |
| bool | HasAllPackageFlags (uint32 FlagsToCheck) const |
| | Used to check whether all of the passed flags are set in the cached asset package flags. 更多...
|
| |
| bool | HasAnyPackageFlags (uint32 FlagsToCheck) const |
| | Used to check whether the any of the passed flags are set in the cached asset package flags. 更多...
|
| |
|
bool | IsAssetLoaded () const |
| | Returns true if the asset is loaded
|
| |
|
bool | IsRedirector () const |
| | Returns true if the this asset is a redirector.
|
| |
|
bool | IsUAsset () const |
| | Returns true if this is the primary asset in a package, true for maps and assets but false for secondary objects like class redirectors
|
| |
|
bool | IsValid () const |
| | Checks to see if this AssetData refers to an asset or is NULL
|
| |
|
bool | operator== (const FAssetData &Other) const |
| | FAssetDatas are equal if their object paths match
|
| |
|
void | PrintAssetData () const |
| | Prints the details of the asset to the log
|
| |
| void | SerializeForCache (FArchive &Ar) |
| | Serialize as part of the registry cache. 更多...
|
| |
|
FSoftObjectPath | ToSoftObjectPath () const |
| | Convert to a SoftObjectPath for loading
|
| |
A struct to hold important information about an assets found by the Asset Registry This struct is transient and should never be serialized