Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::RPI::AssetReference Struct Referencefinal

#include <AssetReference.h>

Public Member Functions

 AZ_RTTI (AssetReference, "{33895678-2406-46F5-9303-103C3FB6C40F}")
 
 AZ_CLASS_ALLOCATOR (AssetReference, SystemAllocator)
 

Static Public Member Functions

static void Reflect (ReflectContext *context)
 

Public Attributes

AZStd::string m_filePath
 File path to the source asset.
 
Data::AssetId m_assetId
 ID of the asset.
 

Detailed Description

This class is used in data driven contexts to point to another asset using a file path. The asset builders for classes that uses this can look up the asset ID of the file path, add it to it's list of dependencies, and then set the m_assetId for runtime use by the class. For an example of this, see PassAssetBuilder


The documentation for this struct was generated from the following file: