Event.type

var type : EventType

Description

The type of event.

See Also: EventType, GUI Scripting Guide.

JavaScript
// Prints the current event detected.
function OnGUI () {
Debug.Log("Current event detected: " + Event.current.type);
}