FPrimaryAssetId

This identifies an object as a "primary" asset that can be searched for by the AssetManager and used in various tools

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/PrimaryAssetId.h

Include

#include "UObject/PrimaryAssetId.h"

Syntax

struct FPrimaryAssetId

Remarks

This identifies an object as a "primary" asset that can be searched for by the AssetManager and used in various tools

Variables

Name Description

Public variable

FName

 

PrimaryAssetName

An FName describing this asset.

Public variable

FPrimaryAssetTy...

 

PrimaryAssetType

An FName describing the logical type of this object, usually the name of a base UClass.

Constructors

Name Description

Public function

FPrimaryAssetId()

Public function

FPrimaryAssetId

(
    const FString& TypeAndName
)

Public function

FPrimaryAssetId

(
    FPrimaryAssetType InAssetType,
    FName InAssetName
)

Functions

Name Description

Public function Const

bool

 

ExportTextItem

(
    FString& ValueStr,
    FPrimaryAssetId const& DefaultValu...,
    UObject* Parent,
    int32 PortFlags,
    UObject* ExportRootScope
)

UStruct Overrides

Public function Static

FPrimaryAsse...

 

FromString

(
    const FString& String
)

Converts from Type:Name format

Public function

bool

 

ImportTextItem

(
    const TCHAR*& Buffer,
    int32 PortFlags,
    UObject* Parent,
    FOutputDevice* ErrorText
)

Public function Const

bool

 

IsValid()

Returns true if this is a valid identifier

Public function Static

FPrimaryAsse...

 

ParseTypeAndName

(
    FName TypeAndName
)

Public function Static

FPrimaryAsse...

 

ParseTypeAndName

(
    const FString& TypeAndName
)

Public function Static

FPrimaryAsse...

 

ParseTypeAndName

(
    const TCHAR* TypeAndName,
    uint32 Len
)

Public function

bool

 

SerializeFromMismatchedTag

(
    FPropertyTag const& Tag,
    FStructuredArchive::FSlot Slot
)

Public function Const

FString

 

ToString()

Returns string version of this identifier in Type:Name format

Operators

Name Description

Public function Const

bool

 

operator!=

(
    const FPrimaryAssetId& Other
)

Public function

FPrimaryAsse...

 

operator=

(
    const FPrimaryAssetId& Other
)

Public function Const

bool

 

operator==

(
    const FPrimaryAssetId& Other
)

Constants

Name

Description

PrimaryAssetNameTag

PrimaryAssetTypeTag

Static names to represent the AssetRegistry tags for the above data

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