Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > AssetRegistry
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/AssetRegistry/AssetIdentifier.h |
Include | #include "AssetRegistry/AssetIdentifier.h" |
Syntax
struct FAssetIdentifier
Remarks
A structure defining a thing that can be reference by something else in the asset registry. Represents either a package of a primary asset id
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
FName | ObjectName | Specific object within a package. If empty, assumed to be the default asset |
![]() |
FName | PackageName | The name of the package that is depended on, this is always set unless PrimaryAssetType is |
![]() |
FPrimaryAssetType | PrimaryAssetType | The primary asset type, if valid the ObjectName is the PrimaryAssetName |
![]() |
FName | ValueName | Name of specific value being referenced, if ObjectName specifies a type such as a UStruct |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
|||
![]() |
FAssetIdentifier
(
const FPrimaryAssetId& PrimaryAssetId, |
Construct from a primary asset id | |
![]() |
FAssetIdentifier
(
UObject* SourceObject, |
||
![]() |
FAssetIdentifier
(
FName InPackageName, |
Can be implicitly constructed from just the package name |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AppendString
(
FStringBuilderBase& Builder |
Appends to the given builder the string version of this identifier in Package.Object::Name format |
![]() ![]() |
bool | FastLess
(
const FAssetIdentifier& Other |
|
![]() ![]() |
FAssetIdentifier | FromString
(
const FString& String |
Converts from Package.Object::Name format |
![]() ![]() |
FPrimaryAssetId | Returns primary asset id for this identifier, if valid | |
![]() ![]() |
bool | IsObject () |
Returns true if this represents an object, true for both package objects and PrimaryAssetId objects |
![]() ![]() |
bool | IsPackage () |
Returns true if this represents a package |
![]() ![]() |
bool | IsValid () |
Returns true if this is a valid non-null identifier |
![]() ![]() |
bool | IsValue () |
Returns true if this represents a specific value |
![]() ![]() |
bool | LexicalLess
(
const FAssetIdentifier& Other |
|
![]() ![]() |
FString | ToString () |
Returns string version of this identifier in Package.Object::Name format |
![]() ![]() |
void | WriteCompactBinary
(
FCbWriter& Writer |