Class LoadSceneCommand
Class LoadSceneCommand.
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Industrial.Configuring.Staging
Syntax
[Obsolete("LoadSceneCommand is obsolete\nPlease use LoadScenesCommandAsync.")]
public class LoadSceneCommand : StagingCommand
Properties
Load
Gets or sets a value indicating whether this LoadSceneCommand is load.
Declaration
public bool Load { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Scene
Gets or sets the scene.
Declaration
public SceneObject Scene { get; set; }
Property Value
Type | Description |
---|---|
SceneObject | The scene. |
Methods
CleanUpCommandEditor()
Cleans up command editor.
Declaration
public override void CleanUpCommandEditor()
Overrides
ExecuteCommand(CommandContext)
Load Scene and Wait until the operation is done
Declaration
protected override IEnumerator ExecuteCommand(CommandContext context)
Parameters
Type | Name | Description |
---|---|---|
CommandContext | context | The context. |
Returns
Type | Description |
---|---|
IEnumerator | IEnumerator. |
Overrides
ExecuteCommandEditor(CommandContext)
Instant load Scene in EditMode
Declaration
protected override IEnumerator ExecuteCommandEditor(CommandContext context)
Parameters
Type | Name | Description |
---|---|---|
CommandContext | context | The context. |
Returns
Type | Description |
---|---|
IEnumerator | IEnumerator. |
Overrides
GetExportSettings()
Gets the export settings.
Declaration
public override List<string> GetExportSettings()
Returns
Type | Description |
---|---|
List<String> | List<System.String>. |
Overrides
OnBeginUnloading()
Called when [begin unloading].
Declaration
public void OnBeginUnloading()
OnFinishedReloading()
Called when [finished reloading].
Declaration
public void OnFinishedReloading()