event.name

Type String
Event lateUpdate
Revision Release 2020.3606
Keywords lateUpdate, name

Overview

The value of event.name is "lateUpdate" when used with the Runtime:addEventListener() method to call the event listener function every frame.

Example

local function myListener( event )
    print( "Listener called with event of type " .. event.name )
end
Runtime:addEventListener( "lateUpdate", myListener )