Class InputControlLayoutAttribute | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class InputControlLayoutAttribute

    Attribute to control layout settings of a type used to generate an InputControlLayout.

    Inheritance
    System.Object
    InputControlLayoutAttribute
    Namespace: UnityEngine.Experimental.Input.Layouts
    Syntax
    public class InputControlLayoutAttribute : Attribute

    Fields

    commonUsages

    Declaration
    public string[] commonUsages
    Field Value
    Type Description
    System.String[]

    stateFormat

    Declaration
    public string stateFormat
    Field Value
    Type Description
    System.String

    stateType

    Associates a state representation with an input device and drives the control layout generated for the device from its state rather than from the device class.

    Declaration
    public Type stateType
    Field Value
    Type Description
    Type
    Remarks

    This is only useful if you have a state struct dictating a specific state layout and you want the device layout to automatically take offsets from the fields annoated with InputControlAttribute.

    variants

    Declaration
    public string variants
    Field Value
    Type Description
    System.String
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023