Navigation
API > API/Plugins > API/Plugins/NeuralMorphModelEditor
Inheritance Hierarchy
- TSharedFromThis
- FGCObject
- FMLDeformerEditorModel
- FMLDeformerGeomCacheEditorModel
- FMLDeformerMorphModelEditorModel
- FNeuralMorphEditorModel
References
| Module | NeuralMorphModelEditor |
| Header | /Engine/Plugins/Animation/MLDeformer/NeuralMorphModel/Source/NeuralMorphModelEditor/Public/NeuralMorphEditorModel.h |
| Include | #include "NeuralMorphEditorModel.h" |
Syntax
class FNeuralMorphEditorModel : public UE::MLDeformer::FMLDeformerMorphModelEditorModel
Remarks
The editor model related to the neural morph model's runtime class (UNeuralMorphModel).
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | MaskVizItemIndex | ||
| PRAGMA_DISABLE_DEPRECATION_WARNINGS |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyMaskInfoToMaskBuffer
(
const USkeletalMesh* SkeletalMesh, |
||
| void | BuildMaskBuffer
(
TArray< float >& OutMaskBuffer |
Build a set of masks, all concatenated into one flat array. | |
| void | DebugDrawItemMask
(
FPrimitiveDrawInterface* PDI, |
Draw the mask for a given item. An item can be a bone, curve or anything else that has a mask. | |
| void | GenerateBoneGroupMaskInfo
(
int32 InputInfoBoneGroupIndex, |
Generate the mask info for a given bone group. | |
| void | GenerateBoneGroupMaskInfos
(
int32 HierarchyDepth |
Generate the mask infos for all bone groups. | |
| void | GenerateBoneMaskInfo
(
int32 InputInfoBoneIndex, |
Generate the mask info for a given bone. | |
| void | GenerateBoneMaskInfos
(
int32 HierarchyDepth |
Generate bone mask infos for all bones in the bone input list. | |
| FName | Generate a unique name for a bone group. | ||
| FName | Generate a unique name for a curve group. | ||
| int32 | Get the mask visualization item index. | ||
| UNeuralMorphModel * | Get a pointer to the neural morph runtime model. | ||
| FMLDeformerEditorModel * | MakeInstance () |
We need to implement this static MakeInstance method. | |
| void | Rebuild the mask buffer. | ||
| void | Remove mask infos for bones that do not exist in the bone include list. | ||
| void | Clear all bone group mask infos. | ||
| void | Clear all bone mask infos. | ||
| void | SetMaskVisualizationItemIndex
(
int32 InMaskVizItemIndex |
Set the mask visualization item index. |
Overridden from FMLDeformerMorphModelEditorModel
| Type | Name | Description | |
|---|---|---|---|
| const TArrayView< const float > | GetMaskForMorphTarget
(
int32 MorphTargetIndex |
Get the mask buffer for a given morph target. | |
| bool | Check if input masking is supported in this model. |
Overridden from FMLDeformerEditorModel
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< SMLDeformerInputWidget > | Create the input widget. | ||
| FText | Get the text that we should display as overlay on top of the asset editor viewport. | ||
| bool | Check whether this model supports a per training input animation vertex mask. | ||
| void | Init
(
const InitSettings& Settings |
Initialize the model. | |
| void | InitInputInfo
(
UMLDeformerInputInfo* InputInfo |
Initialize the input information, which basically describes what the inputs to the neural network are going to be. | |
| bool | Load the trained network from an onnx file. | ||
| void | This is executed after the input assets have changed. | ||
| void | OnPropertyChanged
(
FPropertyChangedEvent& PropertyChangedEvent |
This is called whenever a property value changes in the UI. | |
| void | Render
(
const FSceneView* View, |
Render additional (debug) things in the viewport. | |
| ETrainingResult | Train () |
Launch the training. | |
| void | Update the state that is used to decide whether the Train button in the UI is enabled or not. | ||
| void | This should update the list of available training devices. |
Overridden from FGCObject
| Type | Name | Description | |
|---|---|---|---|
| FString | Overload this method to report a name for your referencer |