Skip to content

Commit 9061c68

Browse files
committed
SubclassSelector is now support a concrete base class.
1 parent 782fe29 commit 9061c68

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)