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::MorphTargetMetaAsset Class Referencefinal

#include <MorphTargetMetaAsset.h>

Inherits AZ::Data::AssetData.

Classes

struct  MorphTarget
 Meta data for a morph target. More...
 

Public Member Functions

 AZ_RTTI (MorphTargetMetaAsset, "{7F8D8CEA-6E03-4EA6-8E9B-3388D8E00EFD}", Data::AssetData)
 
 AZ_CLASS_ALLOCATOR (MorphTargetMetaAsset, AZ::SystemAllocator)
 
void SetReady ()
 Set the asset status to ready.
 
void AddMorphTarget (const MorphTarget &morphTarget)
 
const AZStd::vector< MorphTarget > & GetMorphTargets () const
 Get access to the morph target meta data.
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 
static AZ::Data::AssetId ConstructAssetId (const AZ::Data::AssetId &modelAssetId, const AZStd::string &modelAssetName)
 

Static Public Attributes

static constexpr const char * DisplayName = "MorphTargetMeta"
 
static constexpr const char * Extension = "morphTargetMeta"
 
static constexpr const char * Group = "Model"
 

Detailed Description

The morph target meta asset is an optional asset that belongs to a model. In case the model does not contain any morph targets, the meta asset won't be generated.

Member Function Documentation

◆ AddMorphTarget()

void AZ::RPI::MorphTargetMetaAsset::AddMorphTarget ( const MorphTarget morphTarget)

Add meta data for a morph target.

Parameters
morphTargetMeta target for the morph target.

◆ ConstructAssetId()

static AZ::Data::AssetId AZ::RPI::MorphTargetMetaAsset::ConstructAssetId ( const AZ::Data::AssetId &  modelAssetId,
const AZStd::string &  modelAssetName 
)
static

Construct the asset id for the morph target meta asset based on the model asset id it belongs to. The generated asset id will embed the model asset id and use s_assetIdPrefix as sub-id. As there won't be more than exactly one morph target meta asset, the sub-id is fixed.

Parameters
modelAssetIdThe asset id of the model this belongs to.
modelAssetNameThe model asset or group name the meta asset belongs to.

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