Scripting API

Touchscreen

class in UnityEngine.InputSystem · Unity.InputSystem · inherits from Pointer

6 of 10 of Unity's members
In Tassix

A touch screen with ten touches. Desktop players have none, so current is null (as in Unity on a desktop without one); the type is here for scripts that check for a touch screen first.

Constructors 1

Properties 4

static Touchscreen? current { get; }
TouchControl primaryTouch { get; }
TouchControl[] touchControlArray { get; }
ReadOnlyArray<TouchControl> touches { get; }

Methods 1

void MakeCurrent()

Not in Tassix yet 4

FinishSetup OnNextUpdate OnRemoved OnStateEvent