Class SceneWatchdogModule
Inheritance
SceneWatchdogModule
Syntax
[MovedFrom("Unity.MARS")]
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
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
Explicit Interface Implementations
Declaration
void IModule.LoadModule()
Implements
Declaration
void IModule.UnloadModule()
Implements
Declaration
void IModuleDependency<SimulatedObjectsManager>.ConnectDependency(SimulatedObjectsManager dependency)
Parameters
Implements