Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

Unity bugged after Ios Build

$
0
0
My unity game stopped working properly since I built it in ios builder. It gives me error such as "NullReferenceException: Object reference not set to an instance of an object" even if the object is set properly, with the same code written as before building to Ios. Does Ios building change something? Or reset some scene variable? Can I restore a previous version of the project without having a backup? Thanks.. I'm just afraid For example, I have these lines of code: if (! barBonus) { barBonus = GameObject.Instantiate (barPrefab, Vector3.zero, Quaternion.identity) as GameObject; } But even if barBonus is set, it instantiates many barPrefabs. These lines of code (100% sure about that) used to work before ios build.

Viewing all articles
Browse latest Browse all 4709

Trending Articles