Skip to content

buttonvisualizer

eisclimber edited this page Apr 4, 2026 · 1 revision

ButtonVisualizer

Class in ExPresSXR.Interaction.ValueRangeInteractable

Inherits from ValueVisualizer\<V\>

Summary

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

public class ButtonVisualizer : 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.
RecordHoverStartHeight(IXRInteractable,IXRInteractor) Records the hover start height of an interaction.
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.
UpdateVisualizationWithToggle(float,bool,IXRInteractable) Displays the pressed state of a button if in toggle mode.

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally