OnTouchScreenBegin||doc136865

September 20, 2022

Format

local event = Event:GetEvent("OnTouchScreenBegin")

Describe

This event is fired at the beginning of touching the screen.

Callback function parameters

Type name introduce
Vector2 pos Touch screen coordinates

Code example

local event = Event:GetEvent("OnTouchScreenBegin")
event:Bind(function(pos)
    print("OnTouchScreenBegin", pos)
end)