- Home /
Is it possible to not allow unity optimise my code?
Im using litJson in my project and didnt know about the issues with it and ios before I started using it. The annoying thing is it works fine on a development build with debugging enabled however without debugging it just doesn't work. The only explanation is that the code is optimised and its the optimised code that doesnt work on ios.
is it possible to not allow unity to optimise a particular script/the whole project?
Switching on development build doesn't change the optimisation as far as I can tell, but the inclusion of debugging makes quite a few changes to the structure of the final code (inserting a lot of stuff between method calls). By "doesn't work" what do you mean?
Json$$anonymous$$apper isnt able to parse the json to an object. There are quite a few posts saying Json$$anonymous$$apper isnt compatible with ios -
http://forum.unity3d.com/threads/113181-LitJSON-issue-on-iOS
But it does work with debugging on.. i cant debug it to find out exactly why it doesnt work because when i have debugging enabled it works!
Answer by roberto_sc · Jun 17, 2013 at 11:37 AM
You can go to Edit
> Project Settings
> Player
, click in the iOS tab, Other Settings
and change the Optimisation parameters, like the API compatibility level and SDK version. This is what you can do in Unity, but it doesn't seem that it will help.
Your answer
Follow this Question
Related Questions
Sprtes memory usage 0 Answers
Question about 'performance' between iPhone4 and (4s & ipad3) 2 Answers