docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Namespace UnityEngine.XR.Interaction.Toolkit.Inputs.Readers

    Classes

    InputFeatureUsageString<T>

    Serializable class that wraps a string usage name for use with InputFeatureUsage_1.

    XRInputButtonReader

    Serializable typed input button reader that can read the current button's state from an input source. Behaviors can declare a field of this type to allow them to read input from an input action or any other source.

    XRInputDeviceBoolValueReader

    A ScriptableObject that provides a bool value from a device from the XR input subsystem as defined by its characteristics and feature usage string. Intended to be used with an XRInputValueReader as its object reference or as part of an XRInputDeviceButtonReader.

    XRInputDeviceButtonReader

    An adapter component that provides a bool and 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 XRInputButtonReader as its object reference.

    XRInputDeviceFloatValueReader

    A ScriptableObject that provides a 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 XRInputValueReader as its object reference or as part of an XRInputDeviceButtonReader.

    XRInputDeviceInputTrackingStateValueReader

    A ScriptableObject that provides an InputTrackingState value from a device from the XR input subsystem as defined by its characteristics and feature usage string. Intended to be used with an XRInputValueReader as its object reference.

    XRInputDeviceQuaternionValueReader

    A ScriptableObject that provides a Quaternion value from a device from the XR input subsystem as defined by its characteristics and feature usage string. Intended to be used with an XRInputValueReader as its object reference.

    XRInputDeviceValueReader

    An abstract base ScriptableObject that provides a value from a device from the XR input subsystem as defined by its characteristics and feature usage string. Intended to be used with an XRInputValueReader as its object reference or as part of an XRInputDeviceButtonReader. This class contains the common base fields of the typed value reader.

    XRInputDeviceValueReader<TValue>

    A ScriptableObject that provides a typed value from a device from the XR input subsystem as defined by its characteristics and feature usage string. Intended to be used with an XRInputValueReader as its object reference or as part of an XRInputDeviceButtonReader.

    XRInputDeviceVector2ValueReader

    A ScriptableObject that provides a Vector2 value from a device from the XR input subsystem as defined by its characteristics and feature usage string. Intended to be used with an XRInputValueReader as its object reference or as part of an XRInputDeviceButtonReader.

    XRInputDeviceVector3ValueReader

    A ScriptableObject that provides a Vector3 value from a device from the XR input subsystem as defined by its characteristics and feature usage string. Intended to be used with an XRInputValueReader as its object reference.

    XRInputReaderUtility

    Utility class that provides useful methods for behaviors that use input readers.

    XRInputValueReader

    Base abstract class for a serializable input value reader without typed code.

    XRInputValueReader<TValue>

    Serializable typed input value reader that can read the current value from an input source. Behaviors can declare a field of this type to allow them to read input from an input action or any other source.

    Interfaces

    IXRInputButtonReader

    Interface which allows for callers to read the button's state from an input source.

    IXRInputValueReader

    Base interface for all input value readers.

    IXRInputValueReader<TValue>

    Interface which allows for callers to read the current value from an input source.

    Enums

    XRInputButtonReader.InputSourceMode

    The mode that determines from which input source the button's state is read from.

    XRInputValueReader.InputSourceMode

    The mode that determines from which input source the value is read from.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)