From 9cfd54438bc62c0e718331b12eebe3cec893d6a2 Mon Sep 17 00:00:00 2001 From: Akeit0 <90429982+Akeit0@users.noreply.github.com> Date: Thu, 22 Feb 2024 08:09:25 +0900 Subject: [PATCH] Fix: Syntax bug --- .../Alchemy/Editor/Elements/PropertyListView.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Alchemy/Assets/Alchemy/Editor/Elements/PropertyListView.cs b/Alchemy/Assets/Alchemy/Editor/Elements/PropertyListView.cs index 3d314b8..2280c26 100644 --- a/Alchemy/Assets/Alchemy/Editor/Elements/PropertyListView.cs +++ b/Alchemy/Assets/Alchemy/Editor/Elements/PropertyListView.cs @@ -27,14 +27,15 @@ public PropertyListView(SerializedProperty property, int depth) var e = new AlchemyPropertyField(arrayElement, property.GetPropertyType(true), depth + 1, true); element.Add(e); element.Bind(arrayElement.serializedObject); - if (events != null) { - e.TrackPropertyValue(arrayElement, x => - { - ReflectionHelper.Invoke(parentObj, events.OnItemChanged, new object[] { index, x.GetValue() }); - }); + if(events != null) + { + e.TrackPropertyValue(arrayElement, + x => + { + ReflectionHelper.Invoke(parentObj, events.OnItemChanged, + new object[] { index, x.GetValue() }); + }); } - - } }; listView.unbindItem = (element, index) => {