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 |