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

    Class SceneWatchdogModule

    Inheritance
    Object
    ScriptableSettingsBase
    ScriptableSettingsBase<SceneWatchdogModule>
    EditorScriptableSettings<SceneWatchdogModule>
    SceneWatchdogModule
    Inherited Members
    EditorScriptableSettings<SceneWatchdogModule>.instance
    ScriptableSettingsBase<SceneWatchdogModule>.k_HasCustomPath
    ScriptableSettingsBase<SceneWatchdogModule>.s_Instance
    ScriptableSettingsBase<SceneWatchdogModule>.Save(String)
    ScriptableSettingsBase<SceneWatchdogModule>.GetFilePath()
    ScriptableSettingsBase.k_PathExceptionMessage
    ScriptableSettingsBase.GetInstanceByType(Type)
    ScriptableSettingsBase.OnLoaded()
    Namespace: Unity.MARS
    Syntax
    [ScriptableSettingsPath("Assets/MARS/Settings")]
    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
    Type Description
    Boolean

    anySubscribersInScene

    Whether there are any IFunctionalitySubscribers in the active scene

    Declaration
    public bool anySubscribersInScene { get; }
    Property Value
    Type Description
    Boolean

    currentSceneIsFaceScene

    Whether the active scene requires the "face" trait or has face tracking subscribers

    Declaration
    public bool currentSceneIsFaceScene { get; }
    Property Value
    Type Description
    Boolean

    Methods

    ConnectDependency(SimulatedObjectsManager)

    Declaration
    public void ConnectDependency(SimulatedObjectsManager dependency)
    Parameters
    Type Name Description
    SimulatedObjectsManager dependency
    Implements
    IModuleDependency<T>.ConnectDependency(T)

    LoadModule()

    Declaration
    public void LoadModule()
    Implements
    IModule.LoadModule()

    UnloadModule()

    Declaration
    public void UnloadModule()
    Implements
    IModule.UnloadModule()

    Update()

    Declaration
    public void Update()

    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
    Type Description
    Action<List<MARSEntity>>

    entitiesRemoved

    Declaration
    public event Action<List<MARSEntity>> entitiesRemoved
    Event Type
    Type Description
    Action<List<MARSEntity>>

    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
    Type Description
    Action<List<Component>>

    entityComponentsRemoved

    Declaration
    public event Action<List<Component>> entityComponentsRemoved
    Event Type
    Type Description
    Action<List<Component>>

    faceSceneStateChanged

    Called when the state of whether the active scene uses face tracking has changed

    Declaration
    public event Action<bool> faceSceneStateChanged
    Event Type
    Type Description
    Action<Boolean>

    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
    Type Description
    Action<List<IFunctionalitySubscriber>>

    functionalitySubscribersRemoved

    Declaration
    public event Action<List<IFunctionalitySubscriber>> functionalitySubscribersRemoved
    Event Type
    Type Description
    Action<List<IFunctionalitySubscriber>>

    prefabInstanceReverted

    Called when a prefab is reverted outside of a prefab stage.

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