Exemple #1
0
        public override void OnActivate(string searchContext, VisualElement rootElement)
        {
            base.OnActivate(searchContext, rootElement);

            var sceneWatchdogModule = SceneWatchdogModule.instance;

            m_SceneWatchdogObject       = new SerializedObject(sceneWatchdogModule);
            m_SceneWatchdogModuleDrawer = new SceneWatchdogModuleDrawer(m_SceneWatchdogObject);

            var sceneModule = MARSSceneModule.instance;

            m_SceneModuleObject = new SerializedObject(sceneModule);
            m_SceneModuleSceneTrackingDrawer = new MarsSceneModuleSceneTrackingDrawer(m_SceneModuleObject);
        }
 void OnEnable()
 {
     m_SceneWatchdogModuleDrawer = new SceneWatchdogModuleDrawer(serializedObject);
 }