docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class InputFeatureUsageString<T>

    Serializable class that wraps a string usage name for use with InputFeatureUsage`1.

    Inheritance
    object
    InputFeatureUsageString<T>
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Readers
    Assembly: solution.dll
    Syntax
    [Serializable]
    public sealed class InputFeatureUsageString<T> where T : struct
    Type Parameters
    Name Description
    T

    Type of the value the usage represents, such as Vector2 or float.

    Constructors

    Name Description
    InputFeatureUsageString()

    Initializes and returns an instance of InputFeatureUsageString<T>.

    InputFeatureUsageString(string)

    Initializes and returns an instance of InputFeatureUsageString<T>.

    Properties

    Name Description
    name

    The string name of the usage feature, which maps to an input feature on a device.

    See Also

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