Tuesday, February 4, 2014

Dev Blog 18

Today I implemented a potential solution to the mp3 import problem for Android.

So the issue isn't with static vs. non-static IEnumerators, the issue is that StartCoroutine cannot be called from static functions without a script instance. The solution is to implement a Singleton Instance, which I had already implemented somewhat. I refactored the code a little bit to look more like the solution in this UA thread: http://answers.unity3d.com/questions/47513/ienumerator-solution.html

This still imports and plays mp3's on PC, waiting to test on Android now.

Update: The Singleton Instance refactoring didn't work, got same results on Android. In the meantime I increased the button size for the file browser and the text of files/folders/navigation menus on mobile platforms only, to improve usability for touch screen users. Looking for a alternate solution to the mp3 issue, but this might force us to have the 2nd gameplay mode as a PC-only feature for now.

No comments:

Post a Comment