Navigation
API > API/Plugins > API/Plugins/MLDeformerFramework > API/Plugins/MLDeformerFramework/UMLDeformerMorphModel
Description
Set the order of importance during LOD, for the morph targets. Basically this specifies the sorted order of the morph targets, based on the error they introduce when disabling them.
| Name | SetMorphTargetsErrorOrder |
| Type | function |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFramework/Public/MLDeformerMorphModel.h |
| Include Path | #include "MLDeformerMorphModel.h" |
| Source | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFramework/Private/MLDeformerMorphModel.cpp |
UFUNCTION (BlueprintCallable, Category="MLDeformerMorphModel")
void SetMorphTargetsErrorOrder
(
const TArray < int32 > & MorphTargetOrder,
const TArray < float > & ErrorValues
)
Parameters
| Name | Remarks |
|---|---|
| MorphTargetOrder | The array of morph target indices, starting with the most important morph target, and ending with the least important morph target's index. |
| ErrorValues | The error value for each morph target (not sorted), so index 0 contains the error value of the first morph target, which isn't necesarrily the one with highest error. |