GizmoManager

Helps setup gizmo's in the scene to rotate/scale/position meshes

Hierarchy

  • GizmoManager

Implements

Index

Constructors

constructor

Find examples in Playground
  • Instatiates a gizmo manager

    Parameters

    • scene: Scene

      the scene to overlay the gizmos on top of

    Returns GizmoManager

Properties

attachableMeshes

Find examples in Playground
attachableMeshes: Nullable<Array<AbstractMesh>>

Array of meshes which will have the gizmo attached when a pointer selected them. If null, all meshes are attachable. (Default: null)

boundingBoxDragBehavior

Find examples in Playground
boundingBoxDragBehavior: SixDofDragBehavior

When bounding box gizmo is enabled, this can be used to track drag/end events

boundingBoxGizmoEnabled

Find examples in Playground
boundingBoxGizmoEnabled: boolean

If the boundingBox gizmo is enabled

clearGizmoOnEmptyPointerEvent

Find examples in Playground
clearGizmoOnEmptyPointerEvent: boolean

When true, the gizmo will be detached from the current object when a pointer down occurs with an empty picked mesh

gizmos

Find examples in Playground
gizmos: object

Gizmo's created by the gizmo manager, gizmo will be null until gizmo has been enabled for the first time

Type declaration

onAttachedToMeshObservable

Find examples in Playground
onAttachedToMeshObservable: Observable<Nullable<AbstractMesh>>

Fires an event when the manager is attached to a mesh

positionGizmoEnabled

Find examples in Playground
positionGizmoEnabled: boolean

If the position gizmo is enabled

rotationGizmoEnabled

Find examples in Playground
rotationGizmoEnabled: boolean

If the rotation gizmo is enabled

scaleGizmoEnabled

Find examples in Playground
scaleGizmoEnabled: boolean

If the scale gizmo is enabled

usePointerToAttachGizmos

Find examples in Playground
usePointerToAttachGizmos: boolean

If pointer events should perform attaching/detaching a gizmo, if false this can be done manually via attachToMesh. (Default: true)

Methods

attachToMesh

Find examples in Playground
  • Attaches a set of gizmos to the specified mesh

    Parameters

    Returns void

dispose

Find examples in Playground
  • dispose(): void

Generated using TypeDoc