Skip to content

Commit 81ed9e7

Browse files
authored
Merge pull request #18 from mackysoft/support-concrete-base-class
`SubclassSelector` is now support a concrete base class.
2 parents 3c0cf41 + 9061c68 commit 81ed9e7

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
@@ -64,7 +64,7 @@ TypePopupCache GetTypePopup (SerializedProperty property) {
6464

6565
Type baseType = ManagedReferenceUtility.GetType(managedReferenceFieldTypename);
6666
var popup = new AdvancedTypePopup(
67-
TypeCache.GetTypesDerivedFrom(baseType).Where(p =>
67+
TypeCache.GetTypesDerivedFrom(baseType).Append(baseType).Where(p =>
6868
(p.IsPublic || p.IsNestedPublic) &&
6969
!p.IsAbstract &&
7070
!p.IsGenericType &&

0 commit comments

Comments
 (0)