Wanzyee Studio

Wrapper to listen to editor global event to dispatch. More...

Inherits MonoBehaviour.

Properties

static Event lastEvent [get]
 The last event data of eventHandler. More...
 

Events

static Action eventHandler
 Callback of the global input or GameView GUI evant. More...
 

Detailed Description

Wrapper to listen to editor global event to dispatch.

This's an editor-only UnityEngine.Component, please don't add this manually nor by a script.

Property Documentation

Event lastEvent
staticget

The last event data of eventHandler.

Event Documentation

Action eventHandler
static

Callback of the global input or GameView GUI evant.

Wrapper for the undocumented internal EditorApplication.globalEventHandler, hope it keeps alive. And work with a hidden component for GameView event handling. It's not recommended to draw any GUI with this.

Please note, this may not be invoked if:

  1. A hotkey is captured by editor menu or custom MenuItem, e.g., "Ctrl-P" is "Edit/Play".
  2. When edit a text field, or only press "Shift".