From b9ad9838aeeb7a26d2e4c57602d3ea0708974da2 Mon Sep 17 00:00:00 2001 From: mackysoft Date: Fri, 31 Dec 2021 11:03:50 +0900 Subject: [PATCH] Removed class constraints. Removed class constraints. This allows the use of structs. --- .../Editor/SubclassSelectorDrawer.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs b/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs index 3525a37..0e5f746 100644 --- a/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs +++ b/Assets/MackySoft/MackySoft.SerializeReferenceExtensions/Editor/SubclassSelectorDrawer.cs @@ -63,7 +63,6 @@ namespace MackySoft.SerializeReferenceExtensions.Editor { Type baseType = property.GetManagedReferenceFieldType(); var popup = new AdvancedTypePopup( TypeCache.GetTypesDerivedFrom(baseType).Where(p => - p.IsClass && (p.IsPublic || p.IsNestedPublic) && !p.IsAbstract && !p.IsGenericType &&