diff --git a/Alchemy/Assets/Alchemy/Editor/Elements/InlineEditorObjectField.cs b/Alchemy/Assets/Alchemy/Editor/Elements/InlineEditorObjectField.cs index ce5b57f..eb1e091 100644 --- a/Alchemy/Assets/Alchemy/Editor/Elements/InlineEditorObjectField.cs +++ b/Alchemy/Assets/Alchemy/Editor/Elements/InlineEditorObjectField.cs @@ -15,6 +15,8 @@ namespace Alchemy.Editor.Elements { Assert.IsTrue(property.propertyType == SerializedPropertyType.ObjectReference); + this.depth = depth; + style.minHeight = EditorGUIUtility.singleLineHeight + EditorGUIUtility.standardVerticalSpacing; foldout = new Foldout() @@ -31,30 +33,19 @@ namespace Alchemy.Editor.Elements field.style.position = Position.Absolute; field.style.width = Length.Percent(100f); - field.RegisterValueChangeCallback(x => + field.schedule.Execute(() => { - isNull = x.changedProperty.objectReferenceValue == null; - - field.Q