Bitbybit Docs
    Preparing search index...

    Class CreateGizmoDto (Inputs.BabylonGizmo)

    Feeds babylon.gizmo.manager.createGizmoManager: which gizmos to enable, which meshes they may attach to, how the pointer attaches them and how large they are drawn.

    Index

    Constructors

    • Parameters

      • OptionalpositionGizmoEnabled: boolean
      • OptionalrotationGizmoEnabled: boolean
      • OptionalscaleGizmoEnabled: boolean
      • OptionalboundingBoxGizmoEnabled: boolean
      • OptionalattachableMeshes: AbstractMesh[]
      • OptionalclearGizmoOnEmptyPointerEvent: boolean
      • OptionalscaleRatio: number
      • OptionalusePointerToAttachGizmos: boolean

      Returns CreateGizmoDto

    Properties

    positionGizmoEnabled: boolean

    When true, the arrows that drag the mesh along an axis are shown

    true
    
    rotationGizmoEnabled: boolean

    When true, the rings that turn the mesh around an axis are shown

    false
    
    scaleGizmoEnabled: boolean

    When true, the handles that stretch the mesh along an axis are shown

    false
    
    boundingBoxGizmoEnabled: boolean

    When true, the frame with scale and rotate handles around the mesh is shown

    false
    
    usePointerToAttachGizmos: boolean

    When true, clicking a mesh attaches the gizmos to it; when false, attach them with attachToMesh

    true
    
    clearGizmoOnEmptyPointerEvent: boolean

    When true, clicking into empty space detaches the gizmos

    false
    
    scaleRatio: number

    How large the gizmo handles are drawn; 1 is the default size and 2 doubles it

    1
    

    0

    Infinity

    0.1

    attachableMeshes?: AbstractMesh[]

    The only meshes the pointer may attach the gizmos to; left out or empty, any mesh qualifies

    undefined
    

    true