Class UIActionInputModule
Input module that takes its input from InputAction.
Inherited Members
Namespace: UnityEngine.Experimental.Input.Plugins.UI
Syntax
public class UIActionInputModule : UIInputModule
Remarks
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
cancel
An InputAction delivering a System.Boolean used for sending
Declaration
public InputActionProperty cancel { get; set; }
Property Value
Type | Description |
---|---|
InputActionProperty |
leftClick
An InputAction delivering a System.Boolean used for sending
Declaration
public InputActionProperty leftClick { get; set; }
Property Value
Type | Description |
---|---|
InputActionProperty |
middleClick
An InputAction delivering a System.Boolean used for sending
Declaration
public InputActionProperty middleClick { get; set; }
Property Value
Type | Description |
---|---|
InputActionProperty |
move
An InputAction delivering a
Declaration
public InputActionProperty move { get; set; }
Property Value
Type | Description |
---|---|
InputActionProperty |
point
An InputAction delivering a
Declaration
public InputActionProperty point { get; set; }
Property Value
Type | Description |
---|---|
InputActionProperty |
rightClick
An InputAction delivering a System.Boolean used for sending
Declaration
public InputActionProperty rightClick { get; set; }
Property Value
Type | Description |
---|---|
InputActionProperty |
scrollWheel
An InputAction delivering a
Declaration
public InputActionProperty scrollWheel { get; set; }
Property Value
Type | Description |
---|---|
InputActionProperty |
sendEventsWhenInBackground
This enables background event processing, so that the Input Module can continue sending UI events even in the background.
Declaration
public bool sendEventsWhenInBackground { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
submit
An InputAction delivering a System.Boolean used for sending
Declaration
public InputActionProperty submit { get; set; }
Property Value
Type | Description |
---|---|
InputActionProperty |
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()