Skip to content

Commit

Permalink
Fix: Support inspection of private array-like fields on base class
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyu0127 committed Mar 16, 2024
1 parent bcaeef5 commit d84619f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ public static FieldInfo GetFieldInfo(this SerializedProperty property)
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);
Expand Down

0 comments on commit d84619f

Please sign in to comment.