private void OnDestroy() { Instance = null; UnityApiEvents.DestroyInstance(); _settings = null; Resources.UnloadAsset(titleContent.image); Resources.UnloadUnusedAssets(); }
private void OnEnable() { _stackTraceIgnorePrefixs = GetStackTraceIgnorePrefixs(); _stackTraceIgnorePrefixs.AddRange(GetDefaultIgnorePrefixs()); _settings = GetOrCreateSettings(); if (_unityApiEvents == null) { _unityApiEvents = UnityApiEvents.GetOrCreate(); } SetDirtyLogs(); }
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(); }
public static void GenerateInstance() { DestroyInstance(); _instance = ScriptableObject.CreateInstance <UnityApiEvents>(); }