Fix: Syntax bug

This commit is contained in:
Akeit0 2024-02-22 08:09:25 +09:00
parent e170451f6a
commit 9cfd54438b

View File

@ -27,14 +27,15 @@ namespace Alchemy.Editor.Elements
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 =>
if(events != null)
{
ReflectionHelper.Invoke(parentObj, events.OnItemChanged, new object[] { index, x.GetValue<object>() });
e.TrackPropertyValue(arrayElement,
x =>
{
ReflectionHelper.Invoke(parentObj, events.OnItemChanged,
new object[] { index, x.GetValue<object>() });
});
}
}
};
listView.unbindItem = (element, index) =>
{