docs.unity3d.com
    Show / Hide Table of Contents

    Class CommandContext

    Class CommandContext.

    Inheritance
    Object
    CommandContext
    Namespace: UnityEngine.Industrial.Configuring.Commands
    Syntax
    public class CommandContext

    Constructors

    CommandContext()

    Initializes a new instance of the CommandContext class.

    Declaration
    public CommandContext()

    CommandContext(Configurator, IReadOnlyList<Command>, StagingElement)

    Initializes a new instance of the CommandContext class.

    Declaration
    public CommandContext(Configurator configurator, IReadOnlyList<Command> commandGroup, StagingElement stagingElement = null)
    Parameters
    Type Name Description
    Configurator configurator

    The configurator.

    IReadOnlyList<Command> commandGroup

    The command group.

    StagingElement stagingElement

    The staging element.

    Properties

    CommandGroup

    The group of related command being run in the same batch

    Declaration
    public IReadOnlyList<Command> CommandGroup { get; }
    Property Value
    Type Description
    IReadOnlyList<Command>

    The command group.

    Configurator

    The current active configurator

    Declaration
    public Configurator Configurator { get; }
    Property Value
    Type Description
    Configurator

    The configurator.

    StagingElement

    The current staging element within which this command is being run (optional if it is from a hotspot or other source)

    Declaration
    public StagingElement StagingElement { get; }
    Property Value
    Type Description
    StagingElement

    The staging element.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023