Class InputSystemUIInputModule
Input module that takes its input from InputAction.
Inherited Members
Namespace: UnityEngine.InputSystem.Plugins.UI
Syntax
public class InputSystemUIInputModule : UIInputModuleRemarks
This UI input module has the advantage over other such modules that it doesn't have to know what devices and types of devices input is coming from. Instead, the actions hide the actual sources of input from the module.
Properties
actionsAsset
Declaration
public InputActionAsset actionsAsset { get; set; }Property Value
| Type | Description | 
|---|---|
| InputActionAsset | 
cancel
An InputAction delivering a System.Boolean used for sending 
Declaration
public InputActionReference cancel { get; set; }Property Value
| Type | Description | 
|---|---|
| InputActionReference | 
leftClick
An InputAction delivering a System.Boolean used for sending 
Declaration
public InputActionReference leftClick { get; set; }Property Value
| Type | Description | 
|---|---|
| InputActionReference | 
middleClick
An InputAction delivering a System.Boolean used for sending 
Declaration
public InputActionReference middleClick { get; set; }Property Value
| Type | Description | 
|---|---|
| InputActionReference | 
move
An InputAction delivering a 
Declaration
public InputActionReference move { get; set; }Property Value
| Type | Description | 
|---|---|
| InputActionReference | 
point
An InputAction delivering a 
Declaration
public InputActionReference point { get; set; }Property Value
| Type | Description | 
|---|---|
| InputActionReference | 
rightClick
An InputAction delivering a System.Boolean used for sending 
Declaration
public InputActionReference rightClick { get; set; }Property Value
| Type | Description | 
|---|---|
| InputActionReference | 
scrollWheel
An InputAction delivering a 
Declaration
public InputActionReference scrollWheel { get; set; }Property Value
| Type | Description | 
|---|---|
| InputActionReference | 
submit
An InputAction delivering a System.Boolean used for sending 
Declaration
public InputActionReference submit { get; set; }Property Value
| Type | Description | 
|---|---|
| InputActionReference | 
Methods
AddTouch(InputActionProperty, InputActionProperty)
Adds Touch UI responses based the Actions provided.
Declaration
public int AddTouch(InputActionProperty position, InputActionProperty phase)Parameters
| Type | Name | Description | 
|---|---|---|
| InputActionProperty | position | A  | 
| InputActionProperty | phase | A PointerPhase value that represents the current state of the touch event. | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | The Pointer Id that represents UI events from this Touch action set. | 
AddTrackedDevice(InputActionProperty, InputActionProperty, InputActionProperty)
Adds Tracked Device UI responses based the Actions provided.
Declaration
public int AddTrackedDevice(InputActionProperty position, InputActionProperty orientation, InputActionProperty select)Parameters
| Type | Name | Description | 
|---|---|---|
| InputActionProperty | position | A  | 
| InputActionProperty | orientation | A  | 
| InputActionProperty | select | A System.Boolean selection value that represents whether the user wants to select objects or not. | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | The Pointer Id that represents UI events from this Touch action set. | 
Awake()
Declaration
protected override void Awake()DisableAllActions()
This is a quick accessor for disabling all actions currently enabled. Currently, action ownership is ambiguous, and we need a way to enable/disable inspector-set actions.
Declaration
public void DisableAllActions()EnableAllActions()
This is a quick accessor for enabling all actions. Currently, action ownership is ambiguous, and we need a way to enable/disable inspector-set actions.
Declaration
public void EnableAllActions()OnDestroy()
Declaration
protected override void OnDestroy()OnDisable()
Declaration
protected override void OnDisable()OnEnable()
Declaration
protected override void OnEnable()Process()
Declaration
public override void Process()