UEditorModelingObjectsCreationAPI

Implementation of [UModelingObjectsCreationAPI](API\Plugins\ModelingComponents\UModelingObjectsCreationAPI) suitable for use in UE Editor.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

ModelingComponentsEditorOnly

Header

/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponentsEditorOnly/Public/EditorModelingObjectsCreationAPI.h

Include

#include "EditorModelingObjectsCreationAPI.h"

Syntax

UCLASS()
class UEditorModelingObjectsCreationAPI : public UModelingObjectsCreationAPI

Remarks

Implementation of UModelingObjectsCreationAPI suitable for use in UE Editor.

This is intended to be registered in the ToolsContext ContextObjectStore. Static utility functions Register() / Find() / ::Deregister() can be used to do this in a consistent way.

Several client-provided callbacks can be used to customize functionality (eg in Modeling Mode)

  • GetNewAssetPathNameCallback is called to determine an asset path. This can be used to do things like pop up an interactive path-selection dialog, use project-defined paths, etc

  • OnModelingMeshCreated is broadcast for each new created mesh object

  • OnModelingTextureCreated is broadcast for each new created texture object

Variables

Functions

Name Description

Public function

FCreateMeshO...

 

CreateDynamicMeshActor

(
    FCreateMeshObjectParams&& CreateMe...
)

Public function

FCreateMeshO...

 

CreateStaticMeshAsset

(
    FCreateMeshObjectParams&& CreateMe...
)

Internal implementations called by public functions

Public function

FCreateMeshO...

 

CreateVolume

(
    FCreateMeshObjectParams&& CreateMe...
)

Public function Static

bool

 

Deregister

(
    UInteractiveToolsContext* Tool...
)

Public function

TArray< UMat...

 

FilterMaterials

(
    const TArray< UMaterialInterface&#...
)

Public function Static

UEditorModel...

 

Find

(
    UInteractiveToolsContext* Tool...
)

Public function Static

UEditorModel...

 

Register

(
    UInteractiveToolsContext* Tool...
)

Utility functions to handle registration/unregistration

Overridden from UModelingObjectsCreationAPI

Name Description

Public function Virtual

FCreateMeshO...

 

CreateMeshObject

(
    const FCreateMeshObjectParams& Cre...
)

Create a new mesh object based on the data in CreateMeshParams

Public function Virtual

FCreateMeshO...

 

CreateMeshObject

(
    FCreateMeshObjectParams&& CreateMe...
)

Public function Virtual

FCreateTextu...

 

CreateTextureObject

(
    const FCreateTextureObjectParams& ...
)

Create a new texture object based on the data in CreateTexParams

Public function Virtual

FCreateTextu...

 

CreateTextureObject

(
    FCreateTextureObjectParams&& Creat...
)

Public function Virtual Const

bool

 

HasMoveVariants()

Non-UFunction variants that support std::move operators

Typedefs

Name

Description

FGetAssetPathNameCallbackSignature

Callbacks that editor can hook into to handle asset creation

FModelingMeshCreatedSignature

FModelingTextureCreatedSignature