docs.unity3d.com
    显示 / 隐藏目录

    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: Unity.MARS
    Syntax
    [Serializable]
    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

    返回到顶部
    Copyright © 2023 Unity Technologies — 商标和使用条款
    • 法律条款
    • 隐私政策
    • Cookie
    • 不要出售或分享我的个人信息
    • Your Privacy Choices (Cookie Settings)