예제 #1
0
        internal bool SendEvent(Event e)
        {
            int depth = SavedGUIState.Internal_GetGUIDepth();

            if (depth > 0)
            {
                SavedGUIState oldState = SavedGUIState.Create();
                var           retval   = Internal_SendEvent(e);
                if (retval)
                {
                    EditorApplication.SignalTick();
                }
                oldState.ApplyAndForget();
                return(retval);
            }

            {
                var retval = Internal_SendEvent(e);
                if (retval)
                {
                    EditorApplication.SignalTick();
                }
                return(retval);
            }
        }