#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. | |
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