Quantcast
Channel: Questions in topic: "il2cpp"
Viewing all articles
Browse latest Browse all 598

Why does IL2CPP replace the "new" with Activator.CreateInstance?

$
0
0
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.

Viewing all articles
Browse latest Browse all 598

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>