GUI not rendering on facebook (Dimerocker)

hey guys, i’ve got a little something i’m building for facebook, using dimerocker.

i’ve got some stuff in my OnGUI() function, and everything is working PERFECTLY inside of the editor, and even inside the web player.

however, on facebook, my gui code appears to stop working at a certain point. that is – every line renders fine, but at some point it just stops, as if the function is breaking at a certain point. it used to stop working when it hit a math calculation i had, so i moved that off into my Update function and that problem was solved. now it LOOKS like it’s stopping working on an else{} statement… and a pretty simple one.

totally baffled me. whats the deal? does OnGUI have any restrictions? does anyone have any idea what the hell could be going on?

I’ve got all sorts of weird code all over my game in the OnGUI function, but this only seems to cause a problem in a certain area.

Could you post a link to your app, or give more info on what you’re doing/api calls you’re making when this happens?

If the GUI ever receives a bad parameter, like you’re trying to display something which causes an error, it’ll take down the entire GUI.

Hey Tempest, thanks for the reply.

agh… i’d like to, but I can’t post my game… my partners would kill me. Its in hush-hush mode right now.

thanks for tip about the gui… the thing is though, it’s working in the editor/web player… just not on facebook.

truth be told, i haven’t put it in it’s own iframe on facebook yet, so i don’t know if it’s facebook, or just dimerocker. i gueeesss i should probably do that.

It’s difficult to say what the issue might be. Are you getting any errors in Unity’s player log? (on Mac OS X you can check this at ~/Library/Logs/Unity/Player.log)

hmm thanks matt, i’ll go looking for that tonight, when i get off work.

that’s different from build or play errors in the console, right?

I played around with this for a long time last night, and i think what im goign to do is just unload ALL logic, off of onGUI into Update

basically right now i have a lot of

if{}else{}ifagain{}elseif{}elseif{}elseif inside of onGUI… and while that’s always been fine for me before, moving other code into update solved previous problems, so i’m gonna do that and see what happens…

provided nothing shows up in the log, of course.