public override void OnActivate(string searchContext, VisualElement rootElement) { base.OnActivate(searchContext, rootElement); var simulationSettings = SimulationSettings.instance; m_SimulationSettingsObject = new SerializedObject(simulationSettings); m_SimulationSettingsDrawer = new SimulationSettingsDrawer(m_SimulationSettingsObject); var querySimulationModule = QuerySimulationModule.instance; m_QuerySimulationModuleObject = new SerializedObject(querySimulationModule); m_QuerySimulationModuleDrawer = new QuerySimulationModuleDrawer(m_QuerySimulationModuleObject); var environmentManager = MARSEnvironmentManager.instance; m_EnvironmentManagerObject = new SerializedObject(environmentManager); m_EnvironmentManagerDrawer = new MarsEnvironmentManagerDrawer(m_EnvironmentManagerObject); var simulationEnvironmentSettings = SimulationEnvironmentSettings.instance; m_SimulationEnvironmentSettingsObject = new SerializedObject(simulationEnvironmentSettings); m_SimulationEnvironmentSettingsDrawer = new SimulationEnvironmentSettingsDrawer(m_SimulationEnvironmentSettingsObject); var recordingPlaybackModule = MarsRecordingPlaybackModule.instance; m_RecordingPlaybackModuleObject = new SerializedObject(recordingPlaybackModule); m_RecordingPlaybackModule = new MarsRecordingPlaybackModuleDrawer(m_RecordingPlaybackModuleObject); var marsTimeModule = MarsTimeModule.instance; m_TimeModuleObject = new SerializedObject(marsTimeModule); m_TimeModuleDrawer = new MarsTimeModuleDrawer(m_TimeModuleObject); var sessionRecordingSettings = SessionRecordingSettings.instance; m_SessionRecordingSettingsObject = new SerializedObject(sessionRecordingSettings); m_SessionRecordingSettingsDrawer = new SessionRecordingSettingsDrawer(m_SessionRecordingSettingsObject); var sceneModule = MARSSceneModule.instance; m_SceneModuleObject = new SerializedObject(sceneModule); m_SceneModuleSimulationSettingsDrawer = new MarsSceneModuleSimulationSettingsDrawer(m_SceneModuleObject); var simulationVideoContextSettings = SimulationVideoContextSettings.instance; m_SimulationVideoContextSettingsObject = new SerializedObject(simulationVideoContextSettings); m_VideoContextSettingsDrawer = new SimulationVideoContextSettingsDrawer(m_SimulationVideoContextSettingsObject); var geoLocationModule = GeoLocationModule.instance; m_GeoLocationModuleObject = new SerializedObject(geoLocationModule); m_GeoLocationModuleSimulationDrawer = new GeoLocationModuleSimulationDrawer(m_GeoLocationModuleObject); }
void OnEnable() { m_SceneModuleSceneTrackingDrawer = new MarsSceneModuleSceneTrackingDrawer(serializedObject); m_SceneModuleSimulationSettingsDrawer = new MarsSceneModuleSimulationSettingsDrawer(serializedObject); }