Open 3D Engine AzFramework 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.
AzFramework::SimpleAssetReference< AssetType > Class Template Reference

#include <SimpleAsset.h>

Inherits AzFramework::SimpleAssetReferenceBase.

Public Member Functions

 AZ_CLASS_ALLOCATOR (SimpleAssetReference< AssetType >, AZ::SystemAllocator)
 
 AZ_RTTI ((SimpleAssetReference, SimpleAssetReferenceTypeId, AssetType), SimpleAssetReferenceBase)
 
AZ::Data::AssetType GetAssetType () const override
 
const char * GetFileFilter () const override
 
- Public Member Functions inherited from AzFramework::SimpleAssetReferenceBase
 AZ_CLASS_ALLOCATOR (SimpleAssetReferenceBase, AZ::SystemAllocator)
 
 AZ_RTTI (SimpleAssetReferenceBase, "{E16CA6C5-5C78-4AD9-8E9B-F8C1FB4D1DB8}")
 
const AZStd::string & GetAssetPath () const
 
void SetAssetPath (const char *path)
 
virtual AZ::Data::AssetType GetAssetType () const =0
 
virtual const char * GetFileFilter () const =0
 

Static Public Member Functions

static void Register (AZ::SerializeContext &context)
 
- Static Public Member Functions inherited from AzFramework::SimpleAssetReferenceBase
static void Reflect (AZ::ReflectContext *context)
 

Additional Inherited Members

- Static Public Attributes inherited from AzFramework::SimpleAssetReferenceBase
static const int kMaxVariableNameLength = 128
 
- Protected Attributes inherited from AzFramework::SimpleAssetReferenceBase
AZStd::string m_assetPath
 

Detailed Description

template<typename AssetType>
class AzFramework::SimpleAssetReference< AssetType >

Templated asset reference type. This currently acts as a convenience helper for registering asset type information with the environment. e.g. SimpleAssetReference<Mesh>::Register();

Member Function Documentation

◆ GetAssetType()

template<typename AssetType >
AZ::Data::AssetType AzFramework::SimpleAssetReference< AssetType >::GetAssetType ( ) const
inlineoverridevirtual

◆ GetFileFilter()

template<typename AssetType >
const char * AzFramework::SimpleAssetReference< AssetType >::GetFileFilter ( ) const
inlineoverridevirtual

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