docs.unity3d.com
    Show / Hide Table of Contents

    Class StagingManager

    Class StagingManager.

    Inheritance
    Object
    Object
    Component
    Behaviour
    MonoBehaviour
    StagingManager
    Inherited Members
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(String, Single)
    MonoBehaviour.InvokeRepeating(String, Single, Single)
    MonoBehaviour.CancelInvoke(String)
    MonoBehaviour.IsInvoking(String)
    MonoBehaviour.StartCoroutine(String)
    MonoBehaviour.StartCoroutine(String, Object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StartCoroutine_Auto(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(String)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(Object)
    MonoBehaviour.useGUILayout
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent<T>()
    Component.TryGetComponent(Type, Component)
    Component.TryGetComponent<T>(T)
    Component.GetComponent(String)
    Component.GetComponentInChildren(Type, Boolean)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren<T>(Boolean)
    Component.GetComponentInChildren<T>()
    Component.GetComponentsInChildren(Type, Boolean)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren<T>(Boolean)
    Component.GetComponentsInChildren<T>(Boolean, List<T>)
    Component.GetComponentsInChildren<T>()
    Component.GetComponentsInChildren<T>(List<T>)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent<T>()
    Component.GetComponentsInParent(Type, Boolean)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent<T>(Boolean)
    Component.GetComponentsInParent<T>(Boolean, List<T>)
    Component.GetComponentsInParent<T>()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List<Component>)
    Component.GetComponents<T>(List<T>)
    Component.GetComponents<T>()
    Component.CompareTag(String)
    Component.SendMessageUpwards(String, Object, SendMessageOptions)
    Component.SendMessageUpwards(String, Object)
    Component.SendMessageUpwards(String)
    Component.SendMessageUpwards(String, SendMessageOptions)
    Component.SendMessage(String, Object)
    Component.SendMessage(String)
    Component.SendMessage(String, Object, SendMessageOptions)
    Component.SendMessage(String, SendMessageOptions)
    Component.BroadcastMessage(String, Object, SendMessageOptions)
    Component.BroadcastMessage(String, Object)
    Component.BroadcastMessage(String)
    Component.BroadcastMessage(String, SendMessageOptions)
    Component.transform
    Component.gameObject
    Component.tag
    Component.rigidbody
    Component.rigidbody2D
    Component.camera
    Component.light
    Component.animation
    Component.constantForce
    Component.renderer
    Component.audio
    Component.networkView
    Component.collider
    Component.collider2D
    Component.hingeJoint
    Component.particleSystem
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(Object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, Boolean)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.ToString()
    Object.name
    Object.hideFlags
    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.

    currentEvent

    Current event

    Declaration
    public StagingElement currentEvent { get; }
    Property Value
    Type Description
    StagingElement

    currentLight

    Current light

    Declaration
    public StagingElement currentLight { get; }
    Property Value
    Type Description
    StagingElement

    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

    true if this instance is busy; otherwise, false.

    Methods

    ClearCurrentScene(Boolean)

    Clears the current scene.

    Declaration
    public void ClearCurrentScene(bool keepCurrentAsPreview = false)
    Parameters
    Type Name Description
    Boolean keepCurrentAsPreview

    if set to true [keep current as preview].

    ConnectToConfigurationManager()

    Connects to configuration manager.

    Declaration
    public void ConnectToConfigurationManager()

    EnterEnvironmentAsync(StagingElement)

    Loads the environment by running the Enter commands on each staging items. You need to await when calling this method or else it will be run asynchronously.

    Declaration
    public Task EnterEnvironmentAsync(StagingElement element)
    Parameters
    Type Name Description
    StagingElement element
    Returns
    Type Description
    Task

    Task

    ExitEnvironmentAsync()

    Unloads the environment by running the Exit commands on each staging items. You need to await when calling this method or else it will be run asynchronously.

    Declaration
    public Task ExitEnvironmentAsync()
    Returns
    Type Description
    Task

    Task

    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()

    SelectCamera(String, Boolean)

    Selects the camera with a given index

    Declaration
    public bool SelectCamera(string id, bool forceUpdate = false)
    Parameters
    Type Name Description
    String id

    The identifier.

    Boolean forceUpdate

    Force running the enter and exit commands even if the item is already active.

    Returns
    Type Description
    Boolean

    Is available

    SelectCamera(StagingElement, Boolean)

    Activates the camera

    Declaration
    public void SelectCamera(StagingElement cameraElement, bool forceUpdate = false)
    Parameters
    Type Name Description
    StagingElement cameraElement

    The element.

    Boolean forceUpdate

    Force running the enter and exit commands even if the item is already active.

    SelectCameraAsync(StagingElement, Boolean)

    Activates the camera. You need to await when calling this method or else it will be run asynchronously.

    Declaration
    public Task SelectCameraAsync(StagingElement cameraElement, bool forceUpdate = false)
    Parameters
    Type Name Description
    StagingElement cameraElement

    The element.

    Boolean forceUpdate

    Force running the enter and exit commands even if the item is already active.

    Returns
    Type Description
    Task

    Task

    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 lightStagingElement)
    Parameters
    Type Name Description
    StagingElement lightStagingElement

    The staging element.

    Exceptions
    Type Condition
    InvalidOperationException

    The Light " + stagingElement + " is not included in the current StagingSettings.

    SelectLightAsync(StagingElement)

    Select the light with the given StagingElement You need to await when calling this method or else it will be run asynchronously.

    Declaration
    public Task SelectLightAsync(StagingElement lightStagingElement)
    Parameters
    Type Name Description
    StagingElement lightStagingElement

    The staging element.

    Returns
    Type Description
    Task

    Task

    Exceptions
    Type Condition
    InvalidOperationException

    The Light " + stagingElement + " is not included in the current StagingSettings.

    UnloadCurrentEnvironmentAsync()

    Return unloading coroutine that will need to be yielded to

    Declaration
    public Task UnloadCurrentEnvironmentAsync()
    Returns
    Type Description
    Task

    IEnumerator.

    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 switch is finished. Verify the value of the SwitchStagingElementArgs's enter field value to know if Entering or Exiting the environment.

    Declaration
    public event SwitchStagingElementFinishedHandler loadEnvironmentFinished
    Event Type
    Type Description
    SwitchStagingElementFinishedHandler

    loadEnvironmentStarted

    Raised when the environment is starting to be switched. Verify the value of the SwitchStagingElementArgs's enter field value to know if Entering or Exiting the environment.

    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

    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

    Extension Methods

    Async.StartThrowingCoroutine(MonoBehaviour, IEnumerator, Action<Exception>)
    Back to top
    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