docs.unity3d.com
    Show / Hide Table of Contents

    Class TouchSimulation

    Adds a Touchscreen with input simulated from other types of Pointer devices (e.g. Mouse or Pen).

    Inheritance
    Object
    Object
    Component
    Behaviour
    MonoBehaviour
    TouchSimulation
    Inherited Members
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(String, Single)
    MonoBehaviour.InvokeRepeating(String, Single, Single)
    MonoBehaviour.CancelInvoke(String)
    MonoBehaviour.IsInvoking(String)
    MonoBehaviour.StartCoroutine(String)
    MonoBehaviour.StartCoroutine(String, Object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(String)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(Object)
    MonoBehaviour.useGUILayout
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent<T>()
    Component.TryGetComponent(Type, Component)
    Component.TryGetComponent<T>(T)
    Component.GetComponent(String)
    Component.GetComponentInChildren(Type, Boolean)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren<T>(Boolean)
    Component.GetComponentInChildren<T>()
    Component.GetComponentsInChildren(Type, Boolean)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren<T>(Boolean)
    Component.GetComponentsInChildren<T>(Boolean, List<T>)
    Component.GetComponentsInChildren<T>()
    Component.GetComponentsInChildren<T>(List<T>)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent<T>()
    Component.GetComponentsInParent(Type, Boolean)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent<T>(Boolean)
    Component.GetComponentsInParent<T>(Boolean, List<T>)
    Component.GetComponentsInParent<T>()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List<Component>)
    Component.GetComponents<T>(List<T>)
    Component.GetComponents<T>()
    Component.CompareTag(String)
    Component.SendMessageUpwards(String, Object, SendMessageOptions)
    Component.SendMessageUpwards(String, Object)
    Component.SendMessageUpwards(String)
    Component.SendMessageUpwards(String, SendMessageOptions)
    Component.SendMessage(String, Object)
    Component.SendMessage(String)
    Component.SendMessage(String, Object, SendMessageOptions)
    Component.SendMessage(String, SendMessageOptions)
    Component.BroadcastMessage(String, Object, SendMessageOptions)
    Component.BroadcastMessage(String, Object)
    Component.BroadcastMessage(String)
    Component.BroadcastMessage(String, SendMessageOptions)
    Component.transform
    Component.gameObject
    Component.tag
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: UnityEngine.InputSystem.EnhancedTouch
    Syntax
    [AddComponentMenu("Input/Debug/Touch Simulation")]
    [ExecuteInEditMode]
    [HelpURL("https://docs.unity3d.com/Packages/com.unity.inputsystem@1.4/manual/Touch.html#touch-simulation")]
    public class TouchSimulation : MonoBehaviour, IInputStateChangeMonitor

    Properties

    instance

    Declaration
    public static TouchSimulation instance { get; }
    Property Value
    Type Description
    TouchSimulation

    simulatedTouchscreen

    Declaration
    public Touchscreen simulatedTouchscreen { get; }
    Property Value
    Type Description
    Touchscreen

    Methods

    AddPointer(Pointer)

    Declaration
    protected void AddPointer(Pointer pointer)
    Parameters
    Type Name Description
    Pointer pointer

    Destroy()

    Declaration
    public static void Destroy()

    Disable()

    Declaration
    public static void Disable()

    Enable()

    Declaration
    public static void Enable()

    InstallStateChangeMonitors(Int32)

    Declaration
    protected void InstallStateChangeMonitors(int startIndex = 0)
    Parameters
    Type Name Description
    Int32 startIndex

    OnDisable()

    Declaration
    protected void OnDisable()

    OnEnable()

    Declaration
    protected void OnEnable()

    OnSourceControlChangedValue(InputControl, Double, InputEventPtr, Int64)

    Declaration
    protected void OnSourceControlChangedValue(InputControl control, double time, InputEventPtr eventPtr, long sourceDeviceAndButtonIndex)
    Parameters
    Type Name Description
    InputControl control
    Double time
    InputEventPtr eventPtr
    Int64 sourceDeviceAndButtonIndex

    RemovePointer(Pointer)

    Declaration
    protected void RemovePointer(Pointer pointer)
    Parameters
    Type Name Description
    Pointer pointer

    UninstallStateChangeMonitors(Int32)

    Declaration
    protected void UninstallStateChangeMonitors(int startIndex = 0)
    Parameters
    Type Name Description
    Int32 startIndex

    Explicit Interface Implementations

    IInputStateChangeMonitor.NotifyControlStateChanged(InputControl, Double, InputEventPtr, Int64)

    Declaration
    void IInputStateChangeMonitor.NotifyControlStateChanged(InputControl control, double time, InputEventPtr eventPtr, long monitorIndex)
    Parameters
    Type Name Description
    InputControl control
    Double time
    InputEventPtr eventPtr
    Int64 monitorIndex
    Implements
    IInputStateChangeMonitor.NotifyControlStateChanged(InputControl, Double, InputEventPtr, Int64)

    IInputStateChangeMonitor.NotifyTimerExpired(InputControl, Double, Int64, Int32)

    Declaration
    void IInputStateChangeMonitor.NotifyTimerExpired(InputControl control, double time, long monitorIndex, int timerIndex)
    Parameters
    Type Name Description
    InputControl control
    Double time
    Int64 monitorIndex
    Int32 timerIndex
    Implements
    IInputStateChangeMonitor.NotifyTimerExpired(InputControl, Double, Int64, Int32)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023