diff --git a/Il2CppInspector/Reflection/TypeInfo.cs b/Il2CppInspector/Reflection/TypeInfo.cs index 685058a..4a9077a 100644 --- a/Il2CppInspector/Reflection/TypeInfo.cs +++ b/Il2CppInspector/Reflection/TypeInfo.cs @@ -731,6 +731,10 @@ namespace Il2CppInspector.Reflection { refs.UnionWith(GenericTypeArguments); refs.UnionWith(GetGenericParameterConstraints()); + // Generic type constraints of type parameters in generic type definition + if (GenericTypeParameters != null) + refs.UnionWith(GenericTypeParameters.SelectMany(p => p.GetGenericParameterConstraints())); + // Implemented interfaces refs.UnionWith(ImplementedInterfaces);