Class TouchSimulation
Inheritance
TouchSimulation
Assembly: Unity.InputSystem.dll
[AddComponentMenu("Input/Debug/Touch Simulation")]
[ExecuteInEditMode]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.inputsystem@1.8/manual/Touch.html#touch-simulation")]
[InitializeOnLoad]
public class TouchSimulation : MonoBehaviour, IInputStateChangeMonitor
Properties
Declaration
public static TouchSimulation instance { get; }
Property Value
Declaration
public Touchscreen simulatedTouchscreen { get; }
Property Value
Methods
Declaration
protected void AddPointer(Pointer pointer)
Parameters
Type |
Name |
Description |
Pointer |
pointer |
|
Declaration
public static void Destroy()
Declaration
public static void Disable()
Declaration
public static void Enable()
Declaration
protected void InstallStateChangeMonitors(int startIndex = 0)
Parameters
Type |
Name |
Description |
int |
startIndex |
|
Declaration
protected void OnDisable()
Declaration
protected void OnEnable()
Declaration
protected void OnSourceControlChangedValue(InputControl control, double time, InputEventPtr eventPtr, long sourceDeviceAndButtonIndex)
Parameters
Declaration
protected void RemovePointer(Pointer pointer)
Parameters
Type |
Name |
Description |
Pointer |
pointer |
|
Declaration
protected void UninstallStateChangeMonitors(int startIndex = 0)
Parameters
Type |
Name |
Description |
int |
startIndex |
|
Implements