Fix: SerializedProperty.GetFieldInfo() does not retrieve inherited members

This commit is contained in:
AnnulusGames 2024-02-17 17:47:10 +09:00
parent d879978b5f
commit f9bb3efd55

View File

@ -75,7 +75,7 @@ namespace Alchemy.Editor
object target = property.serializedObject.targetObject;
var splits = property.propertyPath.Split('.');
var fieldInfo = ReflectionHelper.GetField(target.GetType(), splits[0]);
var fieldInfo = ReflectionHelper.GetField(target.GetType(), splits[0], includingBaseNonPublic: true);
target = fieldInfo.GetValue(target);
for (var i = 1; i < splits.Length; i++)