Merge pull request #51 from Akeit0/fix-propertylistview

Fix: Syntax bug
This commit is contained in:
Annulus Games 2024-02-22 09:24:46 +09:00 committed by GitHub
commit 5b3a31cc64
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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