2D Toolkit Forum
2D Toolkit => Support => Topic started by: Mezcaholic on January 31, 2013, 02:12:17 am
-
My game has no issue in desktop(PC) deployment but on the webplayer it only displays my background sprites. I've attached two images for clarity. The background is a GameObject that has a 2k2dSprite prefab component. The gamplay piece is a GameObject with a few prefabs of its own.
Doesn't make sense why the gameplay doesn't show up but maybe it is something obvious.
Thanks for any help,
-E
-
What are the z values on the sprites? Are they close? If so, try moving em back abit.
Also, try disabling thebackground to see what draws when the background isn't present...
-
I tried turning off the background first, and then I put the sprites at the same z level as the background and still no dice. They just won't show up on the webplayer but just fine on desktop.
I don't get it. I'll keep digging but it's not making sense.
-E
-
It doesn't make any sense to me either - your code isn't bombing out is it? Might be worth attaching the debugger to see if its hitting an exception somewhere.
-
I am using UnityVS which doesn't seem to like the webplayer and I don't know how else to debug. All I can think of is that the Mono available to the webplayer is not on part with the desktop. So maybe using, partial classes or method extensions or something else I use in my Sudoku code compiled separately isn't agreeing with it. I'll try to see if it makes a dump file somewhere to get more clues.
-E
-
Well, I tracked it down. I am loading a puzzle from a test file right now and this does not work from the webplayer. If I disable that and just instantiate an empty board it displays just fine. I'll figure out how to get that to work or a way around it. Thanks and apologies for the fire drill.
-E