FAssetIdentifier

A structure defining a thing that can be reference by something else in the asset registry.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/AssetRegistry/AssetData.h

Include

#include "AssetRegistry/AssetData.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

Name Description

Public variable

FName

 

ObjectName

Specific object within a package. If empty, assumed to be the default asset

Public variable

FName

 

PackageName

The name of the package that is depended on, this is always set unless PrimaryAssetType is

Public variable

FPrimaryAssetTy...

 

PrimaryAssetType

The primary asset type, if valid the ObjectName is the PrimaryAssetName

Public variable

FName

 

ValueName

Name of specific value being referenced, if ObjectName specifies a type such as a UStruct

Constructors

Name Description

Public function

FAssetIdentifier()

Public function

FAssetIdentifier

(
    const FPrimaryAssetId& PrimaryAsse...,
    FName InValueName
)

Construct from a primary asset id

Public function

FAssetIdentifier

(
    UObject* SourceObject,
    FName InValueName
)

Public function

FAssetIdentifier

(
    FName InPackageName,
    FName InObjectName,
    FName InValueName
)

Can be implicitly constructed from just the package name

Functions

Name Description

Public function Const

void

 

AppendString

(
    FStringBuilderBase& Builder
)

Appends to the given builder the string version of this identifier in Package.Object::Name format

Public function Static

FAssetIdenti...

 

FromString

(
    const FString& String
)

Converts from Package.Object::Name format

Public function Const

FPrimaryAsse...

 

GetPrimaryAssetId()

Returns primary asset id for this identifier, if valid

Public function Const

bool

 

IsObject()

Returns true if this represents an object, true for both package objects and PrimaryAssetId objects

Public function Const

bool

 

IsPackage()

Returns true if this represents a package

Public function Const

bool

 

IsValid()

Returns true if this is a valid non-null identifier

Public function Const

bool

 

IsValue()

Returns true if this represents a specific value

Public function Const

FString

 

ToString()

Returns string version of this identifier in Package.Object::Name format

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss