directiondescriptor - eisclimber/ExPresS-XR GitHub Wiki

DirectionDescriptor

Class in ExPresSXR.Interaction.ValueRangeInteractable

Inherits from BaseValueDescriptor\<V\>

Summary

A range to interpolate a direction Vector3 having a magnitude of 1.0f, whilst supporting snapping.

public class DirectionDescriptor : BaseValueDescriptor<Vector3>

Methods

Name Description
IsMaxValue(Vector3) Checks if the provided value is considered maximal.
IsMinValue(Vector3) Checks if the provided value is considered minimal.
IsValueSnappingEnabled() Allows checking if snapping is enabled and is used internally to emit the correct events.
This function must be implemented as snapping must be implemented individually. If no snapping will be performed, simply return false.

Properties

Name Description
DefaultMaxValue Accessor defining the default max value.
There can be multiple max values, but this is the one used in the editor for setting the value.
Make sure it evaluates to a valid max value according to IsMaxValue(V) .
DefaultMinValue Accessor defining the default min value.
There can be multiple min values, but this is the one used in the editor for setting the value.
Make sure it evaluates to a valid min value according to IsMinValue(V) .
⚠️ **GitHub.com Fallback** ⚠️