Constructs a new 2D slider.
Width of the area of the slider that can be interacted with, in pixels.
Height of the area of the slider that can be interacted with, in pixels.
The Layer that allows filtering of which sliders are interacted with from a specific camera.
Optionalconstraint: EnumValue<XYSliderConstraint, number>Optional constraint that determines in which direction is the slider allowed to be moved in.
OptionalisInternalConstructor: booleanDetermines 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.
Determines if the slider is being drawn as wireframe mesh instead of solid.
Enables or disables the slider, making it interactable or not.
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.
Sets the world rotation of the slider.
Returns the state the slider is currently in.
Interactive gizmo that is positioned in screen-space, and reports 2D movement in screen space (in pixels). When setting the position the Z coordinate will be ignored, and XY coordinates will be interpreted as pixels relative to the camera its viewed through.