Class TouchInputModule
Inheritance
TouchInputModule
Inherited Members
Component.GetComponentIndex()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Scene)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.EventSystems
Assembly: UnityEngine.UI.dll
Syntax
[Obsolete("TouchInputModule is no longer required as Touch input is now handled in StandaloneInputModule.")]
[AddComponentMenu("Event/Touch Input Module")]
public class TouchInputModule : PointerInputModule
Constructors
TouchInputModule()
Declaration
protected TouchInputModule()
Properties
allowActivationOnStandalone
Declaration
[Obsolete("allowActivationOnStandalone has been deprecated. Use forceModuleActive instead (UnityUpgradable) -> forceModuleActive")]
public bool allowActivationOnStandalone { get; set; }
Property Value
Type | Description |
---|---|
bool |
forceModuleActive
Declaration
public bool forceModuleActive { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
DeactivateModule()
Called when the module is deactivated. Override this if you want custom code to execute when you deactivate your module.
Declaration
public override void DeactivateModule()
Overrides
IsModuleSupported()
Check to see if the module is supported. Override this if you have a platform specific module (eg. TouchInputModule that you do not want to activate on standalone.)
Declaration
public override bool IsModuleSupported()
Returns
Type | Description |
---|---|
bool | Is the module supported. |
Overrides
Process()
Process the current tick for the module.
Declaration
public override void Process()
Overrides
ProcessTouchPress(PointerEventData, bool, bool)
Declaration
protected void ProcessTouchPress(PointerEventData pointerEvent, bool pressed, bool released)
Parameters
Type | Name | Description |
---|---|---|
PointerEventData | pointerEvent | |
bool | pressed | |
bool | released |
ShouldActivateModule()
Should the module be activated.
Declaration
public override bool ShouldActivateModule()
Returns
Type | Description |
---|---|
bool |
Overrides
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |
Overrides
UpdateModule()
Update the internal state of the Module.
Declaration
public override void UpdateModule()