protected void OnEnableInternal(AndroidLogcatRuntimeBase runtime) { AndroidLogcatInternalLog.Log("OnEnable"); m_Runtime = runtime; if (m_SearchField == null) { m_SearchField = new SearchField(); } m_Runtime.ProjectSettings.Tags.TagSelectionChanged += TagSelectionChanged; m_TimeOfLastAutoConnectStart = DateTime.Now; m_Runtime.Update += OnUpdate; m_FinishedAutoselectingPackage = false; AndroidLogcatInternalLog.Log("Package: {0}, Auto select: {1}", PlayerSettings.applicationIdentifier, AutoSelectPackage); m_StatusBar = new AndroidLogcatStatusBar(); m_Runtime.Settings.OnSettingsChanged += OnSettingsChanged; m_MemoryViewer = new AndroidLogcatMemoryViewer(this, m_Runtime); // Can't apply settings here, apparently EditorStyles aren't initialized yet. m_ApplySettings = true; m_Runtime.DeviceQuery.Clear(); m_Runtime.DeviceQuery.DeviceSelected += OnSelectedDevice; // Since Runtime.OnDisable can be called earlier than this window OnClose, we must ensure the order m_Runtime.Closing += OnDisable; }
private void OnEnable() { AndroidLogcatInternalLog.Log("OnEnable"); if (m_SearchField == null) { m_SearchField = new SearchField(); } if (m_TagControl == null) { m_TagControl = new AndroidLogcatTagsControl(); } m_TagControl.TagSelectionChanged += TagSelectionChanged; m_SelectedDeviceIndex = -1; m_SelectedDeviceId = null; m_TimeOfLastAutoConnectStart = DateTime.Now; EditorApplication.update += Update; m_FinishedAutoselectingPackage = false; AndroidLogcatInternalLog.Log("Package: {0}, Auto select: {1}", PlayerSettings.applicationIdentifier, AutoSelectPackage); m_StatusBar = new AndroidLogcatStatusBar(); }
private void OnEnable() { AndroidLogcatInternalLog.Log("OnEnable"); m_Runtime = AndroidLogcatManager.instance.Runtime; if (m_SearchField == null) { m_SearchField = new SearchField(); } if (m_TagControl == null) { m_TagControl = new AndroidLogcatTagsControl(); } m_TagControl.TagSelectionChanged += TagSelectionChanged; m_SelectedDeviceIndex = -1; m_SelectedDeviceId = null; m_TimeOfLastAutoConnectStart = DateTime.Now; m_Runtime.OnUpdate += Update; m_FinishedAutoselectingPackage = false; AndroidLogcatInternalLog.Log("Package: {0}, Auto select: {1}", PlayerSettings.applicationIdentifier, AutoSelectPackage); m_StatusBar = new AndroidLogcatStatusBar(); m_Runtime.Settings.OnSettingsChanged += OnSettingsChanged; // Can't apply settings here, apparently EditorStyles aren't initialized yet. m_ApplySettings = true; }