docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddCommand

    AddCommand(Action, string)

    Adds a command to the queue.

    Declaration
    public void AddCommand(Action action, string info = null)
    Parameters
    Type Name Description
    Action action

    Action to execute.

    string info

    Optional description for the action.

    AddCommand(Command)

    Adds a preconstructed command to the queue.

    Declaration
    public void AddCommand(Command command)
    Parameters
    Type Name Description
    Command command

    The command to enqueue.

    In This Article
    Back to top
    Copyright © 2026 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)