UObject::GetPrimaryAssetId

Returns an Type:Name pair representing the PrimaryAssetId for this object.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

References

Module

CoreUObject

Header

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

Include

#include "UObject/Object.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/Obj.cpp

Syntax

virtual FPrimaryAssetId GetPrimaryAssetId() const

Remarks

Returns an Type:Name pair representing the PrimaryAssetId for this object. Assets that need to be globally referenced at runtime should return a valid Identifier. If this is valid, the object can be referenced by identifier using the AssetManager