Class Command
Class Command.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Unity.Industrial.Forma.Core.Commands
Syntax
[MovedFrom(true, "UnityEngine.Industrial.Configuring.Commands", "Unity.Industrial.Configurator", null)]
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>. |