{!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} Class MacroCommand | App UI | 0.5.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MacroCommand

    A macro command is a command that contains other commands.

    Inheritance
    object
    UndoCommand
    MacroCommand
    Inherited Members
    UndoCommand.name
    UndoCommand.isObsolete
    UndoCommand.MergeWith(UndoCommand)
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.AppUI.Undo
    Assembly: solution.dll
    Syntax
    public class MacroCommand : UndoCommand

    Constructors

    Name Description
    MacroCommand(string)

    Creates a new macro command.

    Properties

    Name Description
    this[int]

    Get the command at the specified index.

    id

    The unique identifier of the macro command type.

    memorySize

    The memory size of the macro command.

    Methods

    Name Description
    Add(UndoCommand)

    Adds a command to the macro command.

    OnFlush()

    This will call OnFlush() on all the commands contained in the macro command.

    Redo()

    Redoes the macro command.

    Undo()

    Undoes the macro command.

    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)