{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Namespace Unity.AppUI.Undo | App UI | 0.5.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Namespace Unity.AppUI.Undo

    Classes

    MacroCommand

    A macro command is a command that contains other commands.

    UndoCommand

    Base class for undoable commands.

    UndoStack

    An undo stack maintains a stack of commands that have been applied in your application.

    New commands are pushed on the stack using Push(UndoCommand). Commands can be undone and redone using Undo() and Redo().

    UndoStack keeps track of the current command. This is the command which will be executed by the next call to Redo(). The index of this command is returned by index. The state of the edited object can be rolled forward or back using index. If the top-most command on the stack has already been redone, index is equal to count.

    UndoStack provides *command compression*, command *macros*, and supports the concept of a *clean state*.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)