vector2descriptor - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.Interaction.ValueRangeInteractable
Inherits from BaseValueDescriptor\<V\>
A range to interpolate each individually coordinate a Vector2 between 0.0f and 1.0f (both inclusive), whilst supporting snapping.
public class Vector2Descriptor : BaseValueDescriptor<Vector2>| Name | Description |
|---|---|
| IsMaxValue(Vector2) | Checks if the provided value is considered maximal. |
| IsMinValue(Vector2) | 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. |
| 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) . | |
| EnforceSnap | If true, no snapping will be performed, even if snaps are configured. This can be used to have a smooth motion |
| and only snap in certain situations like after a grab has been released. |