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