docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class XRInputValueReader

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

    Inheritance
    object
    XRInputValueReader
    XRInputValueReader<TValue>
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Readers
    Assembly: solution.dll
    Syntax
    public abstract class XRInputValueReader

    Constructors

    Name Description
    XRInputValueReader()

    Initializes and returns an instance of XRInputValueReader.

    XRInputValueReader(InputAction, InputSourceMode)

    Initializes and returns an instance of XRInputValueReader.

    Properties

    Name Description
    inputAction

    The directly serialized embedded input action that is read when the mode is set to InputAction.

    inputActionReference

    The reference to an input action that is read when the mode is set to InputActionReference.

    inputSourceMode

    The mode that determines from which input source the value is read from. By default this is set to InputActionReference to read from an input action defined in the project.

    Methods

    Name Description
    DisableDirectActionIfModeUsed()

    Disable the directly serialized embedded input action if the mode is set to InputAction.

    EnableDirectActionIfModeUsed()

    Enable the directly serialized embedded input action if the mode is set to InputAction.

    See Also

    XRInputValueReader<TValue>
    In This Article
    Back to top
    Copyright © 2023 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)