Fix: Support inspection of private array-like fields on base class

This commit is contained in:
yuyu0127 2024-03-17 00:21:28 +09:00 committed by yuyu0217
parent bcaeef5ea9
commit d84619f52d

View File

@ -97,12 +97,12 @@ namespace Alchemy.Editor
if (i >= splits.Length) continue; if (i >= splits.Length) continue;
targetType = target.GetType(); targetType = target.GetType();
fieldInfo = ReflectionHelper.GetField(targetType, splits[i]); fieldInfo = ReflectionHelper.GetField(targetType, splits[i], includingBaseNonPublic: true);
} }
else else
{ {
var targetType = target.GetType(); var targetType = target.GetType();
fieldInfo = ReflectionHelper.GetField(targetType, splits[i]); fieldInfo = ReflectionHelper.GetField(targetType, splits[i], includingBaseNonPublic: true);
} }
target = fieldInfo?.GetValue(target); target = fieldInfo?.GetValue(target);