mirror of
https://github.com/AnnulusGames/Alchemy.git
synced 2025-01-22 08:18:51 -05:00
Fix: SerializedProperty.GetFieldInfo() does not retrieve inherited members
This commit is contained in:
parent
d879978b5f
commit
f9bb3efd55
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user