Bitbybit Docs
    Preparing search index...

    Class BabylonGizmoAxisDragGizmo

    位置 Gizmo 的一个箭头,沿单个轴拖动;通过 positionGizmo.getXGizmo 及其同类方法访问它,以开启或关闭该轴。

    Index

    Constructors

    get

    • 读取位置 Gizmo 的一个轴箭头是否显示。

      Parameters

      Returns boolean

      当显示箭头时为 true

    set

    • 显示或隐藏位置 Gizmo 的一个轴箭头,从而可以锁定网格不沿该轴移动。

      Parameters

      Returns IAxisDragGizmo

      同一个轴拖动 Gizmo

      const yArrow = bitbybit.babylon.gizmo.positionGizmo.getYGizmo({ positionGizmo });
      bitbybit.babylon.gizmo.axisDragGizmo.setIsEnabled({ axisDragGizmo: yArrow, isEnabled: false });