Navigation
API > API/Plugins > API/Plugins/MLDeformerFrameworkEditor > API/Plugins/MLDeformerFrameworkEditor/FMLDeformerGeomCacheEditorModel
Description
Creates a geometry cache editor actor (FMLDeformerGeomCacheActor) of a specific ID with a specific geometry cache and label. This will add a new editor actor to the list of editor actors.
| Name | CreateGeomCacheActor |
| Type | function |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Public/MLDeformerGeomCacheEditorModel.h |
| Include Path | #include "MLDeformerGeomCacheEditorModel.h" |
| Source | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerGeomCacheEditorModel.cpp |
void CreateGeomCacheActor
(
UWorld * World,
int32 ActorID,
const FName & Name,
UGeometryCache * GeomCache,
FLinearColor LabelColor,
FLinearColor WireframeColor,
const FText & LabelText,
bool bIsTrainingActor
)
Parameters
| Name | Remarks |
|---|---|
| World | The world to create the actor in. |
| ActorID | The ID that the actor will have after creation, for example UE::MLDeformer::ActorID_Train_GroundTruth. |
| Name | The name of the actor in the scene. |
| GeomCache | The geometry cache to use on this actor. |
| LabelColor | The color of the label that is rendered with the editor actor inside the editor viewport. |
| WireframeColor | The color of this actor when wireframe rendering is enabled. |
| LabelText | The text of the label. |
| bIsTrainingActor | Set this to true when the actor is an actor to be used in training mode, or set to false when it is to be used in testing mode. |