[Error :Il2CppInterop] During invoking native->managed trampoline
Exception: System.TypeLoadException: GenericArguments[0], 'UnityEngine.UIElements.PointerStationaryEvent', on 'UnityEngine.UIElements.EventBase`1[T]' violates the constraint of type parameter 'T'.
at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
at System.RuntimeType.get_Namespace()
at UniverseLib.ReflectionUtility.CacheTypes(Assembly asm)
at UniverseLib.ReflectionUtility.SetupTypeCache()
at UniverseLib.ReflectionUtility.Initialize()
at UniverseLib.Il2CppReflection.Initialize()
at UniverseLib.ReflectionUtility.Init()
internal static void CacheTypes(Assembly asm)
{
foreach (Type type in asm.GetTypes())
{
// Cache namespace if there is one
if (!string.IsNullOrEmpty(type.Namespace) && !uniqueNamespaces.Contains(type.Namespace))
{
uniqueNamespaces.Add(type.Namespace);
int i = 0;
while (i < AllNamespaces.Count)
{
if (type.Namespace.CompareTo(AllNamespaces[i]) < 0)
break;
i++;
}
AllNamespaces.Insert(i, type.Namespace);
}
// Cache the type. Overwrite type if one exists with the full name
AllTypes[type.FullName] = type;
// Invoke listener
OnTypeLoaded?.Invoke(type);
}
}
I'm not sure if it's because UniverseLib hasn't been updated in a long time, so I re-examined UniverseLib using the latest library generated by the game.
I'm not sure if it's because UniverseLib hasn't been updated in a long time, so I re-examined UniverseLib using the latest library generated by the game.