Class StagingManager
Class StagingManager.
Inherited Members
Namespace: UnityEngine.Industrial.Configuring.ConfiguratorRuntime
Syntax
[ExecuteInEditMode]
public class StagingManager : MonoBehaviour
Properties
configurator
Gets the configurator.
Declaration
public Configurator configurator { get; }
Property Value
Type | Description |
---|---|
Configurator | The configurator. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The StagingManager must be child to a GameObject with a Configurator component. |
configuratorInternal
Gets the configurator internal.
Declaration
public Configurator configuratorInternal { get; }
Property Value
Type | Description |
---|---|
Configurator | The configurator internal. |
currentCamera
Get the current camera.
Declaration
public StagingElement currentCamera { get; }
Property Value
Type | Description |
---|---|
StagingElement | The current camera. |
currentEnvironment
Get the current environment.
Declaration
public StagingElement currentEnvironment { get; }
Property Value
Type | Description |
---|---|
StagingElement | The current environment. |
currentRuntimeStagingSettings
Reference to the current stagingsetting that is created from the global and local settings
Declaration
public RuntimeStagingSettings currentRuntimeStagingSettings { get; }
Property Value
Type | Description |
---|---|
RuntimeStagingSettings | The current runtime staging settings. |
IsBusy
Gets a value indicating whether this instance is busy.
Declaration
public bool IsBusy { get; }
Property Value
Type | Description |
---|---|
Boolean |
|
Methods
ClearCurrentScene(Boolean)
Clears the current scene.
Declaration
public void ClearCurrentScene(bool keepCurrentAsPreview = false)
Parameters
Type | Name | Description |
---|---|---|
Boolean | keepCurrentAsPreview | if set to |
ConnectToConfigurationManager()
Connects to configuration manager.
Declaration
public void ConnectToConfigurationManager()
GetAnimations()
Get all animations
Declaration
public IReadOnlyList<StagingElement> GetAnimations()
Returns
Type | Description |
---|---|
IReadOnlyList<StagingElement> | IReadOnlyList<StagingElement>. |
GetCameras()
Get all cameras
Declaration
public IReadOnlyList<StagingItemRow> GetCameras()
Returns
Type | Description |
---|---|
IReadOnlyList<StagingItemRow> | IReadOnlyList<StagingItemRow>. |
GetEnvironmentItems()
All Scenes of the current StagingSettings
Declaration
public IReadOnlyList<StagingItemRow> GetEnvironmentItems()
Returns
Type | Description |
---|---|
IReadOnlyList<StagingItemRow> | IReadOnlyList<StagingItemRow>. |
GetLights()
Get all lights
Declaration
[Obsolete]
public IReadOnlyList<StagingElement> GetLights()
Returns
Type | Description |
---|---|
IReadOnlyList<StagingElement> | IReadOnlyList<StagingElement>. |
LoadScene(String)
Try load the scene for the given id
Declaration
public bool LoadScene(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id | The identifier. |
Returns
Type | Description |
---|---|
Boolean | Is available |
LoadScene(StagingElement)
Load the scene for the given element
Declaration
public object LoadScene(StagingElement element)
Parameters
Type | Name | Description |
---|---|---|
StagingElement | element | The element. |
Returns
Type | Description |
---|---|
Object | System.Object. |
OnDisable()
Called when [disable].
Declaration
public void OnDisable()
OnEnable()
Called when [enable].
Declaration
public void OnEnable()
RemoveCurrentCamera()
Removes the current camera.
Declaration
public void RemoveCurrentCamera()
SelectAnimation(String)
Select the animation with the given id
Declaration
public bool SelectAnimation(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id | The identifier. |
Returns
Type | Description |
---|---|
Boolean | Is available |
SelectAnimation(StagingElement)
Select the animation with the given StagingElement
Declaration
public void SelectAnimation(StagingElement stagingElement)
Parameters
Type | Name | Description |
---|---|---|
StagingElement | stagingElement | The staging element. |
SelectCamera(String)
Selects the camera with a given index
Declaration
public bool SelectCamera(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id | The identifier. |
Returns
Type | Description |
---|---|
Boolean | Is available |
SelectCamera(StagingElement)
Activates the camera
Declaration
public void SelectCamera(StagingElement element)
Parameters
Type | Name | Description |
---|---|---|
StagingElement | element | The element. |
SelectLight(String)
Select the light with the given id
Declaration
[Obsolete]
public void SelectLight(string id)
Parameters
Type | Name | Description |
---|---|---|
String | id | The identifier. |
SelectLight(StagingElement)
Select the light with the given StagingElement
Declaration
[Obsolete]
public void SelectLight(StagingElement stagingElement)
Parameters
Type | Name | Description |
---|---|---|
StagingElement | stagingElement | The staging element. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The Light " + stagingElement + " is not included in the current StagingSettings. |
UnloadCurrentStaging(Action)
Start unloading immediately
Declaration
public Coroutine UnloadCurrentStaging(Action callback = null)
Parameters
Type | Name | Description |
---|---|---|
Action | callback | The callback. |
Returns
Type | Description |
---|---|
Coroutine | Coroutine. |
UnloadCurrentStagingAsync()
Return unloading coroutine that will need to be yielded to
Declaration
public IEnumerator UnloadCurrentStagingAsync()
Returns
Type | Description |
---|---|
IEnumerator | IEnumerator. |
Events
loadEnvironmentFinished
Raised when the environment is loaded successful
Declaration
public event SwitchStagingElementFinishedHandler loadEnvironmentFinished
Event Type
Type | Description |
---|---|
SwitchStagingElementFinishedHandler |
loadEnvironmentStarted
Raised when the environment is loading
Declaration
public event SwitchStagingElementStartedHandler loadEnvironmentStarted
Event Type
Type | Description |
---|---|
SwitchStagingElementStartedHandler |
stagingChanged
Raised when the StagingSettings has changed
Declaration
public event StagingSettingsChangedHandler stagingChanged
Event Type
Type | Description |
---|---|
StagingSettingsChangedHandler |
switchAnimationFinished
Raised when the animation is switched
Declaration
public event SwitchStagingElementFinishedHandler switchAnimationFinished
Event Type
Type | Description |
---|---|
SwitchStagingElementFinishedHandler |
switchAnimationStarted
Raised when the animation is switching
Declaration
public event SwitchStagingElementStartedHandler switchAnimationStarted
Event Type
Type | Description |
---|---|
SwitchStagingElementStartedHandler |
switchCameraFinished
Raised when the camera is switched
Declaration
public event SwitchStagingElementFinishedHandler switchCameraFinished
Event Type
Type | Description |
---|---|
SwitchStagingElementFinishedHandler |
switchCameraStarted
Raised when the camera is switching
Declaration
public event SwitchStagingElementStartedHandler switchCameraStarted
Event Type
Type | Description |
---|---|
SwitchStagingElementStartedHandler |
switchEventFinished
Raised when an event is switched
Declaration
public event SwitchStagingElementFinishedHandler switchEventFinished
Event Type
Type | Description |
---|---|
SwitchStagingElementFinishedHandler |
switchEventStarted
Raised when an event is started
Declaration
public event SwitchStagingElementStartedHandler switchEventStarted
Event Type
Type | Description |
---|---|
SwitchStagingElementStartedHandler |
switchLightFinished
Raised when the Light is switched
Declaration
public event SwitchStagingElementFinishedHandler switchLightFinished
Event Type
Type | Description |
---|---|
SwitchStagingElementFinishedHandler |
switchLightStarted
Raised when the Light is switching
Declaration
public event SwitchStagingElementStartedHandler switchLightStarted
Event Type
Type | Description |
---|---|
SwitchStagingElementStartedHandler |