slider2droundvisualizer - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.Interaction.ValueRangeInteractable
Inherits from ValueVisualizer\<V\>
Defines the visualization for a two dimensional slider interactable along the xy-plane.
public class Slider2DRoundVisualizer : ValueVisualizer<Vector2>| Name | Description |
|---|---|
| DrawGizmos(Transform,Vector2) | Reflects the state of the interactor with Gizmos. |
Called automatically by ExPresSXR.Interaction.ValueRangeInteractable s in the DrawGizmosSelected()-function. |
|
| GetVisualizedValue(IXRInteractable,IXRInteractor) | Calculates a new value based on the constellation of a select interactable and the interactor. |
| Called by a ExPresSXR.Interaction.ValueRangeInteractable automatically when updated with a grab. | |
| SetHandleGrabOffsetWithInteraction(IXRInteractable,IXRInteractor) | Sets the grab offset with the given context of interactable and interactor. |
| UpdateVisualization(Vector2,IXRInteractable) | Updates the visualization based on the provided value. |
Should be called in the setter of the Value. In classes derived from BaseValueDescriptor call this automatically. |