docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Interface IXRInputValueReader<TValue>

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

    Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Readers
    Assembly: solution.dll
    Syntax
    public interface IXRInputValueReader<TValue> : IXRInputValueReader where TValue : struct
    Type Parameters
    Name Description
    TValue

    Type of the value to read, such as Vector2 or float.

    Methods

    Name Description
    ReadValue()

    Read the current value from the input source.

    TryReadValue(out TValue)

    Try to read the current value from the input source.

    See Also

    XRInputValueReader
    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)