VR4Medical/ICI/Library/PackageCache/com.unity.xr.interaction.toolkit@42ef3600567b/Runtime/Inputs/Readers/XRInputDeviceFloatValueReader.cs
2025-07-29 13:45:50 +03:00

20 lines
930 B
C#

namespace UnityEngine.XR.Interaction.Toolkit.Inputs.Readers
{
/// <summary>
/// A <see cref="ScriptableObject"/> that provides a <see cref="float"/> value from a device
/// from the XR input subsystem as defined by its characteristics and feature usage string.
/// Intended to be used with an <see cref="XRInputValueReader"/> as its object reference
/// or as part of an <see cref="XRInputDeviceButtonReader"/>.
/// </summary>
[HelpURL(XRHelpURLConstants.k_XRInputDeviceFloatValueReader)]
[CreateAssetMenu(fileName = "XRInputDeviceFloatValueReader", menuName = "XR/Input Value Reader/float")]
public class XRInputDeviceFloatValueReader : XRInputDeviceValueReader<float>
{
/// <inheritdoc />
public override float ReadValue() => ReadFloatValue();
/// <inheritdoc />
public override bool TryReadValue(out float value) => TryReadFloatValue(out value);
}
}