Anyone seen this? I have GUIText which shows up just fine in my game when played from the editor. As soon as I do a build the game works, but no GUText is being displayed. I cannot re-size the display in the editor at runtime, and the text always shows (and centered on the screen as it should be). I am stumped on this one. I checked the logs and no errors in there. I can see that the code to create and display the text is executed…very odd.
how did you see your code is being executed ?
Just put in some debug markers so I knew the code had been reached and passed. I also monitored the debug log file and there were/are no errors.
You may check the color of your text and the background color. Use a bigger font, assign material to the font,… just a though!
All of those things would show issues in the editor player. I tried to repro this in a test project but can’t. This is a brutal “issue” because no clue how to debug it.
Showing it working in editor:
http://www.youtube.com/watch?v=Bqwju_iuD5I
Showing it not working using a build (believe me I am mashing the keys, but nothing happens):
http://www.youtube.com/watch?v=dKvCDyhTHY4
NOTE: You might need to wait until 1080i is ready to see anything useful.
Solved it. Was the font shader I was using. Reverted back to the default one (GUI/Text Shader) and it works in the build. No clue why a shader would display different in the editor to a build, but a bit disturbing…