diff --git a/Assets/Textus/SerializeReferenceUI/Core/ManagedReferenceUtility.cs b/Assets/Textus/SerializeReferenceUI/Core/ManagedReferenceUtility.cs index 0d67e39..b624883 100644 --- a/Assets/Textus/SerializeReferenceUI/Core/ManagedReferenceUtility.cs +++ b/Assets/Textus/SerializeReferenceUI/Core/ManagedReferenceUtility.cs @@ -50,6 +50,9 @@ public static class ManagedReferenceUtility continue; // Skip abstract classes because they should not be instantiated if (type.IsAbstract) + continue; + // Skip generic classes because they can not be instantiated + if (type.ContainsGenericParameters) continue; // Skip types that has no public empty constructors (activator can not create them) if (type.IsClass && type.GetConstructor(Type.EmptyTypes) == null) // Structs still can be created (strangely)