Navigation
API > API/Plugins > API/Plugins/MLDeformerFramework
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMLDeformerModelInstance
- UMLDeformerMorphModelInstance
- UNearestNeighborModelInstance
- UNeuralMorphModelInstance
References
| Module | MLDeformerFramework |
| Header | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFramework/Public/MLDeformerMorphModelInstance.h |
| Include | #include "MLDeformerMorphModelInstance.h" |
Syntax
UCLASS&40;&41;
class UMLDeformerMorphModelInstance : public UMLDeformerModelInstance
Remarks
The model instance for the UMLDeformerMorphModel. This instance will assume the neural network outputs a set of weights, one for each morph target. The weights of the morph targets in the external morph target set related to the ID of the model will be set to the weights that the neural network outputs. The first morph target contains the means, which need to always be added to the results. Therefore the weight of the first morph target will always be forced to a value of 1.
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | ExternalMorphSetID | The ID of the external morph target set for this instance. This gets initialized during Init. | |
| int32 | LastQualityLevel | The quality level in the previous tick. | |
| float | MorphLerpAlpha | The current lerp alpha (between 0 and 1). | |
| TArray< float > | StartMorphWeights | The morph target weights we are blending towards. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FExternalMorphSetWeights * | FindWeightData
(
int32 LOD |
Find the external morph target weight data for this model instance. | |
| int32 |
Overridden from UMLDeformerModelInstance
| Type | Name | Description | |
|---|---|---|---|
| void | Handle when the model weight is zero. | ||
| void | Init
(
USkeletalMeshComponent* SkelMeshComponent |
Initialize the model instance. | |
| bool | Check if we are in a valid state for the deformer graph's data provider. | ||
| void | Initialize this model, after the ML deformer component has been initialized. | ||
| void | Tick
(
float DeltaTime, |
Update the deformer instance. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. |
Constants
| Name | Description |
|---|---|
| NextFreeMorphSetID | The next free morph target set ID. This is used to generate unique ID's for each morph model. |