void Awake() { #if UNITY_EDITOR EditorDelegates.onExampleWindowFocus += ShowFocusedText; EditorDelegates.onExampleWindowLostFocus += ShowUnfocusedText; if (EditorDelegates.ShowExampleWindow != null) { EditorDelegates.ShowExampleWindow(); } #endif }
void Update() { var mouseOver = false; #if UNITY_EDITOR if (EditorDelegates.IsMouseOverExampleWindow != null) { mouseOver = EditorDelegates.IsMouseOverExampleWindow(); } #endif m_MouseOverText.text = mouseOver ? "Mouse Over" : "Mouse Not Over"; }
void OnLostFocus() { EditorDelegates.OnExampleWindowLostFocus(); }
void OnFocus() { EditorDelegates.OnExampleWindowFocus(); }