private void FooA() where T: new() {
var t = new T();
}
public void FooB() {
FooA>();
}
For some reason IL2CPP can't make AOT code for the SomeGenericClass constructor if we call FooB.
Also I saw that the "new T()" was replaced by "Activator.CreateInstance".
Is that "generic sharing"? If yes, how can I disable it for my project? But it will be nice to disable for all generic classes in some namespace.
Thanks for help.
↧