public void Notify(EditorGUIWidget widget, EventGUIType guiType, object data) { if (widget == null) { Debug.Log(" Widget == null guitype " + guiType.ToString()); } if (widget.IsAutoDepth) { widget.SetAsFirstSibling(); } switch (guiType) { case EventGUIType.Hover: widget.OnHover(); for (int i = 0; i < mListens.Count; i++) { mListens[i].OnHover(widget); } Debug.Log("Hover"); break; case EventGUIType.Press: widget.OnPress((bool)data); for (int i = 0; i < mListens.Count; i++) { mListens[i].OnPress(widget, (bool)data); } Debug.Log("Press " + data.ToString()); break; case EventGUIType.Click: widget.OnClick(); for (int i = 0; i < mListens.Count; i++) { mListens[i].OnClick(widget); } Debug.Log("Click "); break; case EventGUIType.Drag: widget.OnDrag(nowEvent.delta); for (int i = 0; i < mListens.Count; i++) { mListens[i].OnDrag(widget, nowEvent.delta); } Debug.Log("Drag "); break; } }