slider3dspherevisualizer - eisclimber/ExPresS-XR GitHub Wiki

Slider3DSphereVisualizer

Class in ExPresSXR.Interaction.ValueRangeInteractable

Inherits from ValueVisualizer\<V\>

Summary

Defines the visualization for a three dimensional slider interactable with a spherical shape.

public class Slider3DSphereVisualizer : ValueVisualizer<Vector3>

Methods

Name Description
DrawGizmos(Transform,Vector3) 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) Adjusts the grab offset with the current interaction.
UpdateVisualization(Vector3,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** ⚠️