Removed class constraints.

Removed class constraints. This allows the use of structs.
This commit is contained in:
mackysoft 2021-12-31 11:03:50 +09:00
parent 024a9cdbdd
commit b9ad9838ae

View File

@ -63,7 +63,6 @@ namespace MackySoft.SerializeReferenceExtensions.Editor {
Type baseType = property.GetManagedReferenceFieldType(); Type baseType = property.GetManagedReferenceFieldType();
var popup = new AdvancedTypePopup( var popup = new AdvancedTypePopup(
TypeCache.GetTypesDerivedFrom(baseType).Where(p => TypeCache.GetTypesDerivedFrom(baseType).Where(p =>
p.IsClass &&
(p.IsPublic || p.IsNestedPublic) && (p.IsPublic || p.IsNestedPublic) &&
!p.IsAbstract && !p.IsAbstract &&
!p.IsGenericType && !p.IsGenericType &&