Open 3D Engine AzCore 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::Data::AssetId Struct Reference

Public Types

enum class  SubIdDisplayType { Hex , Decimal }
 
using FixedString = AZStd::fixed_string< MaxStringBuffer >
 UUid size (includes terminal) + ":" + hex, subId.
 

Public Member Functions

 AZ_TYPE_INFO (AssetId, "{652ED536-3402-439B-AEBE-4A5DBC554085}")
 
 AssetId ()
 Create asset id in invalid state.
 
 AssetId (AZStd::string_view guidString, u32 subId=0)
 
 AssetId (const Uuid &guid, u32 subId=0)
 
bool IsValid () const
 
void SetInvalid ()
 
bool operator== (const AssetId &rhs) const
 
bool operator!= (const AssetId &rhs) const
 
bool operator< (const AssetId &rhs) const
 
template<class StringType >
StringType ToString (SubIdDisplayType displayType=SubIdDisplayType::Hex) const
 
template<class StringType >
void ToString (StringType &result, SubIdDisplayType displayType=SubIdDisplayType::Hex) const
 
FixedString ToFixedString () const
 

Static Public Member Functions

static AssetId CreateString (AZStd::string_view input)
 
static void Reflect (ReflectContext *context)
 

Public Attributes

Uuid m_guid
 
u32 m_subId
 To allow easier and more consistent asset guid, we can provide asset sub ID. (i.e. Guid is a cubemap texture, subId is the index of the side)
 
u8 m_padBytes [s_maxMemberAlignment -(s_lastMemberSize % s_maxMemberAlignment)] {}
 

Static Public Attributes

static constexpr size_t MaxStringBuffer = AZ::Uuid::MaxStringBuffer + 9
 
static constexpr size_t s_maxMemberAlignment = alignof(decltype(m_guid))
 
static constexpr size_t s_lastMemberSize = sizeof(decltype(m_subId))
 

Constructor & Destructor Documentation

◆ AssetId()

AZ::Data::AssetId::AssetId ( )
inline

Create asset id in invalid state.

Implementations AssetID


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