UConstructionPlaneMechanic

[UConstructionPlaneMechanic](API\Plugins\ModelingComponents\Mechanics\UConstructionPlaneMechanic) implements an interaction in which a 3D plane can be positioned using the standard 3D Gizmo, or placed at hit-locations in the existing scene.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

ModelingComponents

Header

/Engine/Plugins/Experimental/MeshModelingToolset/Source/ModelingComponents/Public/Mechanics/ConstructionPlaneMechanic.h

Include

#include "Mechanics/ConstructionPlaneMechanic.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)()
class UConstructionPlaneMechanic : public UInteractionMechanic

Remarks

UConstructionPlaneMechanic implements an interaction in which a 3D plane can be positioned using the standard 3D Gizmo, or placed at hit-locations in the existing scene. A grid in the plane can optionally be rendered.

Variables

Name Description

Protected variable

bool

 

bEnableSnapToWorldGrid

Public variable

bool

 

bShowGrid

Public variable

TUniqueFunction...

 

CanUpdatePlaneFunc

Replace this to externally control if plane can be updated

Protected variable UProperty

USingleClickInp...

 

ClickToSetPlaneBehavior

Public variable

OnConstructionP...

 

OnPlaneChanged

Public variable

FFrame3d

 

Plane

Public variable UProperty

UTransformGizmo...

 

PlaneTransformGizmo

Public variable UProperty

UTransformProxy...

 

PlaneTransformProxy

Protected variable

TUniquePtr< ICl...

 

SetPointInWorldConnector

Functions

Name Description

Public function

void

 

Initialize

(
    UWorld* TargetWorld,
    const FFrame3d& InitialPlane
)

Public function

void

 

SetDrawPlaneFromWorldPos

(
    const FVector3d& Position,
    const FVector3d& Normal,
    bool bIgnoreNormal
)

Public function

void

 

SetEnableGridSnaping

(
    bool bEnable
)

Protected function

void

 

TransformChanged

(
    UTransformProxy* Proxy,
    FTransform Transform
)

Public function

void

 

UpdateClickPriority

(
    FInputCapturePriority NewPriority
)

Overridden from UInteractionMechanic

Name Description

Public function Virtual

void

 

Render

(
    IToolsContextRenderAPI* Render...
)

Allow the Mechanic to do any custom drawing (ie via PDI/RHI)

Public function Virtual

void

 

Setup

(
    UInteractiveTool* ParentTool
)

Called to initialize the InteractionMechanic

Public function Virtual

void

 

Shutdown()

Called to clean up the InteractionMechanic

Public function Virtual

void

 

Tick

(
    float DeltaTime
)

ALlow the Mechanic to Tick

Typedefs

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss