Navigation
API > API/Plugins > API/Plugins/DetailPoseModel
The model instance class of the Detail Pose Model. This contains the code that calculates the morph target weights and which calculates which detail pose should be blend in.
| Name | UDetailPoseModelInstance |
| Type | class |
| Header File | /Engine/Plugins/Experimental/Animation/MLDeformer/DetailPoseModel/Source/DetailPoseModel/Public/DetailPoseModelInstance.h |
| Include Path | #include "DetailPoseModelInstance.h" |
Syntax
UCLASS ()
class UDetailPoseModelInstance : public UNeuralMorphModelInstance
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMLDeformerModelInstance → UMLDeformerMorphModelInstance → UNeuralMorphModelInstance → UDetailPoseModelInstance
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BestDetailPoseIndex | int32 | The detail pose index that currently is the one with closest distance. | DetailPoseModelInstance.h | |
| DetailPoseDistances | TArray< float > | The distance value between the current current pose and each detail pose. | DetailPoseModelInstance.h | |
| DetailPosePrevWeights | TArray< float > | The detail pose previous frame weights, one for each detail pose. | DetailPoseModelInstance.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Execute
(
float ModelWeight |
DetailPoseModelInstance.h | ||
int32 GetBestDetailPoseIndex () |
Get the best matching detail pose, compared to the character's current pose as defined by the skeletal mesh component we are linked to. | DetailPoseModelInstance.h | |
void Init
(
USkeletalMeshComponent* SkelMeshComponent |
DetailPoseModelInstance.h |