Merge pull request #65 from yuyu0127/support-base-class-private-array

Fix: Inspection of private array-like fields on base class
This commit is contained in:
Annulus Games 2024-03-21 10:54:02 +09:00 committed by GitHub
commit db0d05aec5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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