- Home /
Android Glitch - random assets display after splash screen
After the splash screen on android I get a quick view of a couple of random assets (GUI.Textures) from a different scene which shouldn't even be loaded.
They seem to be positioned correctly according to their scene (though it doesn't seem to load any of the other objects from that scene). I get the same problem on both of our test devices.
Sorry if this has been asked before, I had a look but it's hard to even know what to search for.
Cheers
First I would check this page to see if your device has been tested on. Either way it sounds like a bug to me.
Both devices present the problem. One is the Samsung Galaxy S which I understand is pretty solid. The other is Sharp IS03.
The bug doesn't show up in the editor.
Just an update to this problem.
It seems like a rare, very strange problem, but not unique to my situation I think and might be worth having a look at maybe by the Android debug $$anonymous$$m?
The bug -- 2 art assets (GUI) display themselves before any scenes load (and the assets aren't from any of the first scenes either).
I have tried - deleting the textures - works, but I obviously need them.
Texture problem? $$anonymous$$aybe not - I have taken back into photoshop, changed res, saved out to a new filename and directory then re-imported them into the game and...
GUI objects - the problem initially came from Texture2D (unity GUI) so after the above, I also deleted the variables and the code that displays the textures, made a new GUI style and changed the HUD items to GUI buttons with new variable names. Also changed the line numbers.
result - the exact same textures displayed on game load :S
I just don't get how there would be any association to the old textures/gui objects. How are they linked in Unity? I feel like I've changed everything.
1 interesting thing, if I delete the texture from the GUI style (so the slot is empty), the problem doesn't present itself (meaning it might have to do with the GUI item /and making itself in compilation?)
Also when the textures/object display they appear to be to same aspect ratio as they are used in game, but not the same scale (like they're on a larger scaled quad)
Sorry for the long post.
Answer by Alex123 · Jun 25, 2011 at 01:44 PM
First time user, my bad! ><
I had been using my own scene organisation code (which checked for different objects such as the account manager and returned to the load scene if they weren't loaded).
Because of this I had falsely assumed that the game built from the current loaded scene and had never noticed scene order (which I remembered reading after><).
Answer - The wrong scene (0) was loading and a couple of it's assets were being displayed before it returned to the load scene. Strangely I didn't have this problem in web/editor or on iPhone or it would have been obvious early in development. In fact I didn't even really consider that my original stuff was wrong because of this:P
Thanks to Hiroki Omae-san!