- Home /
Which Bolt nodes stop working if you switch to IL2CPP?
I know that generic lists and dictionaries don't work. But even after I changed them to AOT lists and did an AOT Prebuild some of my visual code is still not working. So I thought maybe there are other nodes that do not work when you switch to IL2CPP.
Comment
Best Answer
Answer by Melanzue · May 31, 2021 at 02:42 AM
Turns out that UnityEngine.Mathf doesn't work with IL2CPP. So I changed it to System.Math and everything worked!
Here's a list of commands that work incorrectly or don't work at all with IL2CPP (not complete):
A generic list;
A generic dictionary;
UnityEngine.Mathf;
TimeSpan.TicksPerDay (instead of using it create a variable with a value 864000000000);
(Comment other commands to add here).