docs.unity3d.com
    Show / Hide Table of Contents

    Class Command

    Class Command.

    Inheritance
    Object
    Command
    PlayAnimationCommand
    PlayFormaAnimationCommand
    PlayTimelineCommand
    ActivateVirtualCameraCommand
    SetCameraSettingsCommand
    ActivateGameObjectCommand
    ActivateLightCommand
    DebugCommand
    StagingCommand
    WaitCommand
    HotspotAction
    SetHotspotStateToCommand
    Namespace: Unity.Industrial.Forma.Core.Commands
    Syntax
    public class Command : MonoBehaviour

    Properties

    Execution

    Gets the execution.

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

    The execution.

    Methods

    Cancel()

    This gets called when the Command gets canceled

    Declaration
    public virtual void Cancel()

    CleanUpCommandEditor()

    Cleans up command editor.

    Declaration
    public virtual void CleanUpCommandEditor()

    Execute(CommandContext)

    Execute the command

    Declaration
    public IEnumerator Execute(CommandContext context)
    Parameters
    Type Name Description
    CommandContext context

    The context.

    Returns
    Type Description
    IEnumerator

    Returns an IEnumerator to allow a constellation of parallel and sequential actions

    ExecuteCommand(CommandContext)

    Executes the command.

    Declaration
    protected virtual IEnumerator ExecuteCommand(CommandContext context)
    Parameters
    Type Name Description
    CommandContext context

    The context.

    Returns
    Type Description
    IEnumerator

    IEnumerator.

    ExecuteCommandEditor(CommandContext)

    Executes the command editor.

    Declaration
    protected virtual IEnumerator ExecuteCommandEditor(CommandContext context)
    Parameters
    Type Name Description
    CommandContext context

    The context.

    Returns
    Type Description
    IEnumerator

    IEnumerator.

    GetExportSettings()

    Gets the export settings.

    Declaration
    public virtual List<string> GetExportSettings()
    Returns
    Type Description
    List<String>

    List<System.String>.

    Back to top
    Terms of use
    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