slidervisualizer - eisclimber/ExPresS-XR GitHub Wiki

SliderVisualizer

Class in ExPresSXR.Interaction.ValueRangeInteractable

Inherits from ValueVisualizer\<V\>

Summary

Defines the visualization for a slider interactable along the x-axis.

public class SliderVisualizer : ValueVisualizer<float>

Methods

Name Description
DrawGizmos(Transform,float) 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(float,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.
⚠️ **GitHub.com Fallback** ⚠️