Enum TouchPhase
Indicates where in its lifecycle a given touch is.
Namespace: UnityEngine.InputSystem
Syntax
public enum TouchPhase
Fields
Name | Description | Value |
---|---|---|
None | No activity has been registered on the touch yet. A given touch state will generally not go back to None once there has been input for it. Meaning that it generally indicates a default-initialized touch record. |
0 |
Began | A touch has just begun, i.e. a finger has touched the screen.. Only the first touch input in any given touch will have this phase. |
1 |
Moved | An ongoing touch has changed position. |
2 |
Ended | An ongoing touch has just ended, i.e. the respective finger has been lifted off of the screen. Only the last touch input in a given touch will have this phase. |
3 |
Canceled | An ongoing touch has been cancelled, i.e. ended in a way other than through user interaction. This happens, for example, if focus is moved away from the application while the touch is ongoing. |
4 |
Stationary | An ongoing touch has not been moved (not received any input) in a frame. This phase is not used by Touchscreen. This means that TouchControl will not generally return this value for phase. It is, however, used by Touch. |
5 |