Class ActivateGameObjectCommand
Class ActivateGameObjectCommand.
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: Unity.Industrial.Forma.Staging.Commands
Syntax
[MovedFrom(true, "UnityEngine.Industrial.Configuring.Staging", "Unity.Industrial.Configurator", null)]
public class ActivateGameObjectCommand : Command
Properties
setActive
Gets or sets a value indicating whether [set active].
Declaration
public bool setActive { get; set; }
Property Value
| Type | Description | 
|---|---|
| Boolean | 
  | 
targetGameObject
Gets or sets the target game object.
Declaration
public GameObject targetGameObject { get; set; }
Property Value
| Type | Description | 
|---|---|
| GameObject | The target game object.  | 
Methods
CleanUpCommandEditor()
Cleans up command editor.
Declaration
public override void CleanUpCommandEditor()
Overrides
ExecuteCommand(CommandContext)
Executes the command.
Declaration
protected override IEnumerator ExecuteCommand(CommandContext commandContext)
Parameters
| Type | Name | Description | 
|---|---|---|
| CommandContext | commandContext | The command context.  | 
Returns
| Type | Description | 
|---|---|
| IEnumerator | IEnumerator.  | 
Overrides
ExecuteCommandEditor(CommandContext)
Executes the command editor.
Declaration
protected override IEnumerator ExecuteCommandEditor(CommandContext commandContext)
Parameters
| Type | Name | Description | 
|---|---|---|
| CommandContext | commandContext | The command context.  | 
Returns
| Type | Description | 
|---|---|
| IEnumerator | IEnumerator.  | 
Overrides
FindTarget()
Finds the target.
Declaration
public void FindTarget()