Class InteractiveGizmoSliderBaseAbstract

Base class for all interactive slider gizmos. A interactive slider gizmo is geometry that the user can interact with by selecting or dragging (sliding) it. Sliders generally output a one- or multi-dimensional delta value that signals the drag amount (and/or direction).

Hierarchy (view full)

Constructors

Accessors

  • get color(): Immutable<Color>
  • The color of the slider.

    Returns Immutable<Color>

    This is only relevant if CustomDrawing is enabled and the default slider representation is drawn.

  • set color(value): void
  • Parameters

    Returns void

  • get isCustomDrawingEnabled(): boolean
  • Determines if custom drawing is enabled. This allows the user to draw custom gizmos for the slider in the Draw method of the parent InteractiveGizmo. If custom drawing is enabled, the built in visual representation for the slider will not be drawn.

    Returns boolean

  • set isCustomDrawingEnabled(value): void
  • Parameters

    • value: boolean

    Returns void

  • get isDrawingWireframe(): boolean
  • Determines if the slider is being drawn as wireframe mesh instead of solid.

    Returns boolean

    This is only relevant if CustomDrawing is enabled and the default slider representation is drawn.

  • set isDrawingWireframe(value): void
  • Parameters

    • value: boolean

    Returns void

  • get isEnabled(): boolean
  • Enables or disables the slider, making it interactable or not.

    Returns boolean

  • set isEnabled(value): void
  • Parameters

    • value: boolean

    Returns void

  • get isFixedScale(): boolean
  • Returns if fixed scale is enabled. If enabled the interactive gizmo will always try to maintain the same visible area in the viewport regardless of distance from camera.

    Returns boolean

  • get layer(): rsx.LayerMask
  • Returns a layer that determines which sliders are interacted with from a specific camera.

    Returns rsx.LayerMask