A piece of code is simply not performed in my game.
After upgrading to Unity 5 I noticed that the wheels of my car disappeared. Wheel class creates a looped chain of physics 2d circles to imitate soft wheel, and the function which connects 2 gameobjects by constraint is not performed for some reason. To avoid posting a lot of original code, I’ll post a simple example:
// Wheel Class
void Start(){
// some code
Log("1");
MyCusmomFunction(param1, param2);
Log("2");
}
void MyCustomFunction(GameObject param1, GameObject param2){
Log("3");
// some code
}
In this example, everything after Log(“1”); is not performed. I see only “1” in my output. This happens only when building for web player, iOS and Android versions work fine. When running in Unity IDE, there are no problems as well.
There was no such bug in Unity 4.6.3.