Struct InputDeviceReference
Reference to one or more InputDevice which can be persisted and also graphically edited in the editor.
Namespace: UnityEngine.InputSystem
Syntax
[Serializable]
public struct InputDeviceReference
Properties
devicePath
Declaration
public string devicePath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
devices
Declaration
public ReadOnlyArray<InputDevice> devices { get; }
Property Value
Type | Description |
---|---|
ReadOnlyArray<InputDevice> |
Methods
Set(InputDevice)
Set reference to point to one specific device.
Declaration
public void Set(InputDevice device)
Parameters
Type | Name | Description |
---|---|---|
InputDevice | device |