UAssetManager::GetPrimaryAssetIdForObject

Sees if the passed in object is a registered primary asset, if so return it.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/AssetManager.h

Include

#include "Engine/AssetManager.h"

Source

/Engine/Source/Runtime/Engine/Private/AssetManager.cpp

Syntax

virtual FPrimaryAssetId GetPrimaryAssetIdForObject
(
    UObject * Object
) const

Remarks

Sees if the passed in object is a registered primary asset, if so return it. Returns invalid Identifier if not found