docs.unity3d.com
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.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Readers
    Assembly: Unity.XR.Interaction.Toolkit.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

    InputFeatureUsageString()

    Initializes and returns an instance of InputFeatureUsageString<T>.

    Declaration
    public InputFeatureUsageString()
    See Also
    CommonUsages

    InputFeatureUsageString(string)

    Initializes and returns an instance of InputFeatureUsageString<T>.

    Declaration
    public InputFeatureUsageString(string usageName)
    Parameters
    Type Name Description
    string usageName

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

    See Also
    CommonUsages

    Properties

    name

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

    Declaration
    public string name { get; set; }
    Property Value
    Type Description
    string
    See Also
    CommonUsages

    See Also

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