mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 08:18:51 -05:00
Fix: bugs
This commit is contained in:
parent
70e2f0e862
commit
4866425575
@ -7,7 +7,6 @@ namespace Alchemy.Editor
|
||||
internal static class AlchemySettingsProvider
|
||||
{
|
||||
static readonly string MenuName = "Project/Alchemy";
|
||||
static SerializedObject serializedObject;
|
||||
|
||||
[SettingsProvider]
|
||||
public static SettingsProvider CreateSettingsProvider()
|
||||
@ -18,8 +17,7 @@ namespace Alchemy.Editor
|
||||
keywords = new HashSet<string>(new[] { "Alchemy, Inspector, Hierarchy" }),
|
||||
guiHandler = searchContext =>
|
||||
{
|
||||
if (serializedObject == null) serializedObject = new(AlchemySettings.GetOrCreateSettings());
|
||||
else serializedObject.Update();
|
||||
var serializedObject = new SerializedObject(AlchemySettings.GetOrCreateSettings());
|
||||
|
||||
using (new EditorGUILayout.HorizontalScope())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user