// called when component is added to GameObject void Reset() { LogSettings existingSettings = EditorLogSettingsLoader.FindLogSettings(); if (existingSettings != null) { settings = existingSettings; UnityEditor.EditorUtility.SetDirty(this); } }
// called when component is added to GameObject void Reset() { LogSettings existingSettings = EditorLogSettingsLoader.FindLogSettings(); if (existingSettings != null) { using (new FlaxEditor.UndoBlock(FlaxEditor.Editor.Instance.Undo, this, "Change Log Settings")) { settings = existingSettings; } //UnityEditor.EditorUtility.SetDirty(this); } }