Class SceneWatchdogModule
Inheritance
SceneWatchdogModule
Syntax
public class SceneWatchdogModule : EditorScriptableSettings<SceneWatchdogModule>, IModuleDependency<SimulatedObjectsManager>, IModule
Properties
anyEntitiesInScene
Whether there are any MARSEntities in the active scene
Declaration
public bool anyEntitiesInScene { get; }
Property Value
anySubscribersInScene
Whether there are any IFunctionalitySubscribers in the active scene
Declaration
public bool anySubscribersInScene { get; }
Property Value
currentSceneIsFaceScene
Whether the active scene requires the "face" trait or has face tracking subscribers
Declaration
public bool currentSceneIsFaceScene { get; }
Property Value
Methods
ConnectDependency(SimulatedObjectsManager)
Declaration
public void ConnectDependency(SimulatedObjectsManager dependency)
Parameters
Implements
LoadModule()
Declaration
Implements
UnloadModule()
Declaration
public void UnloadModule()
Implements
Update()
Declaration
Events
entitiesAdded
Called when MARSEntities are added to the active scene.
Use this for a coarse-grained change check. Provided list contains only entities which have been added
Declaration
public event Action<List<MARSEntity>> entitiesAdded
Event Type
entitiesRemoved
Declaration
public event Action<List<MARSEntity>> entitiesRemoved
Event Type
entityComponentsAdded
Called when MARSEntities or components on a MARSEntity or its children are added to the active scene.
Use this for a fine-grained change check. Provided list contains all entities and child components which have been added
Declaration
public event Action<List<Component>> entityComponentsAdded
Event Type
entityComponentsRemoved
Declaration
public event Action<List<Component>> entityComponentsRemoved
Event Type
faceSceneStateChanged
Called when the state of whether the active scene uses face tracking has changed
Declaration
public event Action<bool> faceSceneStateChanged
Event Type
functionalitySubscribersAdded
Called when IFunctionalitySubscribers are added to the active scene.
Provided list contains subscribers which have been added.
Declaration
public event Action<List<IFunctionalitySubscriber>> functionalitySubscribersAdded
Event Type
functionalitySubscribersRemoved
Declaration
public event Action<List<IFunctionalitySubscriber>> functionalitySubscribersRemoved
Event Type
prefabInstanceReverted
Called when a prefab is reverted outside of a prefab stage.
Declaration
public event Action prefabInstanceReverted
Event Type