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.
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEditor.MARS.Simulation
Assembly: Unity.MARS.Editor.dll
Syntax
[Serializable]
[MovedFrom("Unity.MARS")]
public class SimulationSceneUsers : ScriptableObject
Properties
instance
Active instance of the SimulationSceneUsers
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 |
---|---|
int |
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 |
Returns
Type | Description |
---|---|
bool | Whether the object is using the Simulation Scene |
CreateSimulationSceneSubscribers()
Create the SimulationSceneUsers
instance
Declaration
public static SimulationSceneUsers CreateSimulationSceneSubscribers()
Returns
Type | Description |
---|---|
SimulationSceneUsers | The created instance |
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 |