From d84619f52d028e7c55ad6894f3f1dcf3a82f3fa5 Mon Sep 17 00:00:00 2001 From: yuyu0127 Date: Sun, 17 Mar 2024 00:21:28 +0900 Subject: [PATCH] Fix: Support inspection of private array-like fields on base class --- .../Alchemy/Editor/Internal/SerializedPropertyExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alchemy/Assets/Alchemy/Editor/Internal/SerializedPropertyExtensions.cs b/Alchemy/Assets/Alchemy/Editor/Internal/SerializedPropertyExtensions.cs index 5f55e6d..6542954 100644 --- a/Alchemy/Assets/Alchemy/Editor/Internal/SerializedPropertyExtensions.cs +++ b/Alchemy/Assets/Alchemy/Editor/Internal/SerializedPropertyExtensions.cs @@ -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);