x


GUI elements vanish when publishing

I have a simple timer that's connected to a GUI Text in an empty game object. At the start of the game, the timer begins, and restarts the level if an objective isn't met by the end of 5 minutes. In the editor, the script works flawlessly with the exception of this error:

GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced (type:Layout)

When I publish the game, the GUI text appears, but fails to update as the time progresses. I know it's not the script itself causing problems, as when I make a completely new project, the timer publishes fine and runs accordingly without error.

I also have a simple GUI at the start of the game with buttons to "start game" or "exit" which appears in the editor, but vanishes upon publishing. Like the timer, it works flawlessly when publishing in a new project and gives no errors.

Anybody have some insight into what the problem could be? It would be very appreciated

more ▼

asked Apr 17 '10 at 08:54 PM

Stephanie gravatar image

Stephanie
43 2 2 5

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I've discovered that this occurs when the metadata files in the library become altered. This can occur by accident if you are often merging changes between various build versions. You may have to copy all assets to a new project folder to get them to build correctly. You can try to reimport all in your current project, however this can also corrupt your current project. So if you do choose to try this route, I'd advise you to first make a backup of your current project.

more ▼

answered Jan 18 '11 at 11:46 PM

Steph 1 gravatar image

Steph 1
81 1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3673
x347
x313
x106
x93

asked: Apr 17 '10 at 08:54 PM

Seen: 1456 times

Last Updated: Apr 17 '10 at 08:54 PM