Interface IXRScaleValueProvider
Defines an interface for scale value providers.
Namespace: UnityEngine.XR.Interaction.Toolkit.Interactors
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
public interface IXRScaleValueProvider
Remarks
Implementations of this interface provide a mechanism to get a scale value (a change in scale) from an input control, such as a gesture or controller stick movement. The provided scale value is in the mode supported by the upstream controller.
Properties
scaleMode
Property representing the scale mode that is supported by the implementation of the interface.
Declaration
ScaleMode scaleMode { get; set; }
Property Value
Type | Description |
---|---|
ScaleMode |
See Also
scaleValue
This is the current scale value for the specified scale mode. This value should be updated by the implementing class when other inputs are handled during the standard interaction processing loop.
Declaration
float scaleValue { get; }
Property Value
Type | Description |
---|---|
float |