private void OnDestroy() { Instance = null; UnityApiEvents.DestroyInstance(); _settings = null; Resources.UnloadAsset(titleContent.image); Resources.UnloadUnusedAssets(); }
private void OnEnable() { Instance = this; UnityApiEvents.GenerateInstance(); _stackTraceIgnorePrefixs = BluUtils.StackTraceIgnorePrefixs; _settings = BluLogSettings.Instance; _configuration = BluLogConfiguration.Instance; if (_listWindow == null) { _listWindow = new BluListWindow(); } if (_detailWindow == null) { _detailWindow = new BluDetailWindow(); } if (_toolbarWindow == null) { _toolbarWindow = new BluToolbarWindow(); } SetDirtyLogs(); }