Navigation
API > API/Plugins > API/Plugins/MeshModelingTools
Inheritance Hierarchy
- UObject
- IInputBehaviorSource
- UInteractiveTool
- USingleClickTool
- UAddPrimitiveTool
- UAddArrowPrimitiveTool
- UAddBoxPrimitiveTool
- UAddCapsulePrimitiveTool
- UAddConePrimitiveTool
- UAddCylinderPrimitiveTool
- UAddDiscPrimitiveTool
- UAddRectanglePrimitiveTool
- UAddSpherePrimitiveTool
- UAddStairsPrimitiveTool
- UAddTorusPrimitiveTool
References
| Module | MeshModelingTools |
| Header | /Engine/Plugins/Runtime/MeshModelingToolset/Source/MeshModelingTools/Public/AddPrimitiveTool.h |
| Include | #include "AddPrimitiveTool.h" |
Syntax
UCLASS ()
class UAddPrimitiveTool :
public USingleClickTool ,
public IHoverBehaviorTarget ,
public IInteractiveToolCameraFocusAPI
Remarks
Base tool to create primitives
Variables
| Type | Name | Description | |
|---|---|---|---|
| FString | AssetName | ||
| EState | CurrentState | ||
| TObjectPtr< UDragAlignmentMechanic > | DragAlignmentMechanic | ||
| TObjectPtr< UCombinedTransformGizmo > | Gizmo | ||
| TObjectPtr< UNewMeshMaterialProperties > | MaterialProperties | ||
| TObjectPtr< UCreateMeshObjectTypeProperties > | OutputTypeProperties | Property set for type of output object (StaticMesh, Volume, etc) | |
| TObjectPtr< UPreviewMesh > | PreviewMesh | ||
| UE::Geometry::FFrame3d | ShapeFrame | ||
| TObjectPtr< UProceduralShapeToolProperties > | ShapeSettings | ||
| UWorld * | TargetWorld |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UAddPrimitiveTool
(
const FObjectInitializer& |
Functions
| Type | Name | Description | |
|---|---|---|---|
| UProceduralShapeToolProperties * | |||
| void | |||
| void | GenerateMesh
(
FDynamicMesh3* OutMesh |
||
| EMakeMeshPolygroupMode | |||
| void | |||
| void | SetWorld
(
UWorld* World |
||
| bool | |||
| void | |||
| void | UpdatePreviewPosition
(
const FInputDeviceRay& ClickPos |
||
| void |
Overridden from UInteractiveTool
| Type | Name | Description | |
|---|---|---|---|
| bool | CanAccept () |
||
| bool | HasAccept () |
||
| bool | HasCancel () |
||
| void | OnPropertyModified
(
UObject* PropertySet, |
Automatically called by UInteractiveToolPropertySet.OnModified delegate to notify Tool of child property set changes | |
| void | Render
(
IToolsContextRenderAPI* RenderAPI |
Allow the Tool to do any custom drawing (ie via PDI/RHI) | |
| void | Setup () |
Register default primary-button-click InputBehaviors | |
| void | Shutdown
(
EToolShutdownType ShutdownType |
Called by ToolManager to shut down the Tool |
Overridden from IClickBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | IsHitByClick
(
const FInputDeviceRay& ClickPos |
Test if the Target is hit at this 2D position / 3D ray | |
| void | OnClicked
(
const FInputDeviceRay& ClickPos |
USingleClickTool. |
Overridden from IHoverBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | BeginHoverSequenceHitTest
(
const FInputDeviceRay& PressPos |
Do hover hit-test | |
| void | OnBeginHover
(
const FInputDeviceRay& DevicePos |
Initialize hover sequence at given position | |
| void | OnEndHover () |
Terminate active hover sequence | |
| bool | OnUpdateHover
(
const FInputDeviceRay& DevicePos |
Update active hover sequence with new input position |
Overridden from IInteractiveToolCameraFocusAPI
| Type | Name | Description | |
|---|---|---|---|
| FBox | |||
| bool | GetWorldSpaceFocusPoint
(
const FRay& WorldRay, |
||
| bool | IInteractiveToolCameraFocusAPI implementation. | ||
| bool |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FStateChange | Used to make the initial placement of the mesh undoable. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EState |