Navigation
API > API/Plugins > API/Plugins/MeshModelingTools
Base tool to create primitives
| Name | UAddPrimitiveTool |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MeshModelingToolset/Source/MeshModelingTools/Public/AddPrimitiveTool.h |
| Include Path | #include "AddPrimitiveTool.h" |
Syntax
UCLASS (MinimalAPI)
class UAddPrimitiveTool :
public USingleClickTool ,
public IHoverBehaviorTarget ,
public IInteractiveToolCameraFocusAPI
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInteractiveTool → USingleClickTool → UAddPrimitiveTool
Implements Interfaces
- IClickBehaviorTarget
- IModifierToggleBehaviorTarget
- IInputBehaviorSource
- IHoverBehaviorTarget
- IInteractiveToolCameraFocusAPI
Derived Classes
UAddPrimitiveTool derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UAddPrimitiveTool
(
const FObjectInitializer& |
AddPrimitiveTool.h |
Classes
| Name | Remarks |
|---|---|
| FStateChange | Used to make the initial placement of the mesh undoable. |
Enums
Protected
| Name | Remarks |
|---|---|
| EState |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SetWorld
(
UWorld* World |
AddPrimitiveTool.h |
Overridden from UInteractiveTool
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanAccept() |
AddPrimitiveTool.h | ||
virtual bool HasAccept() |
AddPrimitiveTool.h | ||
virtual bool HasCancel() |
AddPrimitiveTool.h | ||
| AddPrimitiveTool.h | |||
virtual void Render
(
IToolsContextRenderAPI* RenderAPI |
AddPrimitiveTool.h | ||
virtual void Setup() |
AddPrimitiveTool.h | ||
virtual void Shutdown
(
EToolShutdownType ShutdownType |
AddPrimitiveTool.h |
Overridden from IClickBehaviorTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FInputRayHit IsHitByClick
(
const FInputDeviceRay& ClickPos |
AddPrimitiveTool.h | ||
virtual void OnClicked
(
const FInputDeviceRay& ClickPos |
USingleClickTool. | AddPrimitiveTool.h |
Overridden from IHoverBehaviorTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FInputRayHit BeginHoverSequenceHitTest
(
const FInputDeviceRay& PressPos |
AddPrimitiveTool.h | ||
virtual void OnBeginHover
(
const FInputDeviceRay& DevicePos |
AddPrimitiveTool.h | ||
virtual void OnEndHover() |
AddPrimitiveTool.h | ||
virtual bool OnUpdateHover
(
const FInputDeviceRay& DevicePos |
AddPrimitiveTool.h |
Overridden from IInteractiveToolCameraFocusAPI
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FBox GetWorldSpaceFocusBox() |
AddPrimitiveTool.h | ||
virtual bool GetWorldSpaceFocusPoint
(
const FRay& WorldRay, |
AddPrimitiveTool.h | ||
virtual bool SupportsWorldSpaceFocusBox() |
IInteractiveToolCameraFocusAPI implementation. | AddPrimitiveTool.h | |
virtual bool SupportsWorldSpaceFocusPoint() |
AddPrimitiveTool.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual UProceduralShapeToolProperties * CreateShapeSettings() |
AddPrimitiveTool.h | ||
virtual void GenerateAsset() |
AddPrimitiveTool.h | ||
virtual void GenerateMesh
(
FDynamicMesh3* OutMesh |
AddPrimitiveTool.h | ||
virtual EMakeMeshPolygroupMode GetDefaultPolygroupMode() |
AddPrimitiveTool.h | ||
void SetState
(
EState NewState |
AddPrimitiveTool.h | ||
virtual bool ShouldCenterXY() |
AddPrimitiveTool.h | ||
void UpdatePreviewMesh() |
AddPrimitiveTool.h | ||
void UpdatePreviewPosition
(
const FInputDeviceRay& ClickPos |
AddPrimitiveTool.h | ||
void UpdateTargetSurface() |
AddPrimitiveTool.h |