Exemplo n.º 1
0
        public static void Redo()
        {
            EditorWindow[] allWindows = EditorWindow.AllWindows;
            foreach (var window in allWindows)
            {
                if (!window.HasFocus)
                {
                    continue;
                }

                UndoRedo localStack = window.UndoRedo;
                if (localStack == null)
                {
                    continue;
                }

                localStack.Redo();
                return;
            }

            UndoRedo.Global.Redo();
        }