Navigation
API > API/Plugins > API/Plugins/MLDeformerFrameworkEditor > API/Plugins/MLDeformerFrameworkEditor/FMLDeformerEditorModelRegistry
Description
Register a new model. This is needed to make the model appear inside the UI of the editor as selectable model. Call this method in your editor module's StartupModule call.
| Name | RegisterEditorModel |
| Type | function |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Public/MLDeformerModelRegistry.h |
| Include Path | #include "MLDeformerModelRegistry.h" |
| Source | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerModelRegistry.cpp |
void RegisterEditorModel
(
UClass * ModelType,
FOnGetEditorModelInstance Delegate,
int32 ModelPriority
)
Parameters
| Name | Remarks |
|---|---|
| ModelType | The type of the runtime model, for example UNeuralMorphModel::StaticClass(). |
| Delegate | The function that creates the editor model that's related to this editor model, for example FOnGetEditorModelInstance::CreateStatic(&FNeuralMorphEditorModel::MakeInstance). This MakeInstance function must return the new editor model associated with this model. |
| ModelPriority | The priority level of this model. The model with the highest priority is created by default when creating a new ML Deformer Asset. If there is a model with the same priority level already, and it happens to be the highest priority model, then this new model will take over as priority model. |