BOLT's nodes don't work after switching to IL2CPP and doing an AOT Prebuild
I have a graph that places all buttons from an Aot list in a circle-shaped order around a place where a mouse (or finger) has pressed. This graph works perfectly in the editor but when I change a scripting backend to IL2CPP, do an AOT Prebuild and build my game to an Android it just stops working and all of the buttons are positioned at (0,0,0). It's working fine if I don't switch to IL2CPP.
I'm using Unity 2019.3.14f1 and Bolt 1.4.13.
An image of my flow graph that places buttons in a circle-shaped order.
This is how it looks in the editor.
Answer by Melanzue · May 31, 2021 at 02:44 AM
Turns out that UnityEngine.Mathf doesn't work with IL2CPP. So I changed it to System.Math and everything worked!
Hi there, i have the same problem so i'm interesting where do you change the library :) thanks
Your answer
![](https://koobas.hobune.stream/wayback/20220613034203im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
IL2CPP Android build with custom static libraries linked with GNU STL static library 0 Answers
Failed running Android build with il2CPP with Unity 2019.2.11f1 2 Answers
Can't Build with IL2CPP for Android after 2018.3.0 Update(Empty Project) 1 Answer
il2cpp android build error 2019.2.19f1 1 Answer
Android app not building after switching to il2cpp 0 Answers