Enum TouchState | Project Tiny | 0.31.0-preview.24
docs.unity.cn
    Show / Hide Table of Contents

    Enum TouchState

    Describes potential states for the touch point.

    Namespace: Unity.Tiny.Input
    Syntax
    public enum TouchState

    Fields

    Name Description Value
    Began

    The initial reported state for new touch points.

    0
    Moved

    Specifies that the touch point's position changed between the previous frame and this frame.

    1
    Stationary

    Specifies that the touch point's position did not change between the previous frame and this frame.

    2
    Ended

    Specifies that the touch point is expired. Expired Touch points are reported in Ended state for one frame, before being cleared from the list of registered touches.

    3
    Canceled

    Specifies that the operating system or an event interrupted the touch interaction.

    For example if an incoming call causes the the operating system to deliver a a popup message, the application or tab switches from one context to another.

    4
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 06 November 2020