docs.unity3d.com
    Show / Hide Table of Contents

    Class SimulationSceneUsers

    Used to track the objects using the Simulation Scene across Assembly and Module loading. This is used since the Simulation Scene Module can be reloaded outside of normal times when object would try and start or stop using the Simulation Scene.

    Inheritance
    Object
    Object
    ScriptableObject
    SimulationSceneUsers
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(String)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    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.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: UnityEditor.MARS.Simulation
    Syntax
    [Serializable]
    [MovedFrom("Unity.MARS")]
    public class SimulationSceneUsers : ScriptableObject

    Properties

    instance

    Declaration
    public static SimulationSceneUsers instance { get; }
    Property Value
    Type Description
    SimulationSceneUsers

    simulationSceneUserCount

    The current number of objects using the Simulation Scene.

    Declaration
    public int simulationSceneUserCount { get; }
    Property Value
    Type Description
    Int32

    Methods

    AddSimulationUser(ScriptableObject)

    Add the object as a using the Simulation Scene

    Declaration
    public void AddSimulationUser(ScriptableObject usingModule)
    Parameters
    Type Name Description
    ScriptableObject usingModule

    The object using the sim Scene

    ContainsSimulationUser(ScriptableObject)

    Checks if the object is using the Simulation Scene

    Declaration
    public bool ContainsSimulationUser(ScriptableObject usingModule)
    Parameters
    Type Name Description
    ScriptableObject usingModule

    The object to check if using

    Returns
    Type Description
    Boolean

    CreateSimulationSceneSubscribers()

    Declaration
    public static SimulationSceneUsers CreateSimulationSceneSubscribers()
    Returns
    Type Description
    SimulationSceneUsers

    RemoveSimulationUser(ScriptableObject)

    Removes the object from using the Simulation Scene

    Declaration
    public void RemoveSimulationUser(ScriptableObject usingModule)
    Parameters
    Type Name Description
    ScriptableObject usingModule

    The object no longer using the sim Scene

    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