Skip to content

Commit 66fc5ae

Browse files
authored
Merge pull request #61 from mackysoft/feature/support-nested-private
SubclassSelector now support nested private type
2 parents 69f6e31 + 1757747 commit 66fc5ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ TypePopupCache GetTypePopup (SerializedProperty property) {
130130
Type baseType = ManagedReferenceUtility.GetType(managedReferenceFieldTypename);
131131
var popup = new AdvancedTypePopup(
132132
TypeCache.GetTypesDerivedFrom(baseType).Append(baseType).Where(p =>
133-
(p.IsPublic || p.IsNestedPublic) &&
133+
(p.IsPublic || p.IsNestedPublic || p.IsNestedPrivate) &&
134134
!p.IsAbstract &&
135135
!p.IsGenericType &&
136136
!k_UnityObjectType.IsAssignableFrom(p) &&

0 commit comments

Comments
 (0)