docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX
    on 03 March 2021