I am using Unity 5 and the built in GUI tools. My static GUI shows up just fine which makes me think it's not a text/font issue or some such. Again, it all looks good in the Unity editor when I hit Play.

I have tried the different canvas options as far as what space to work in and how to scale. I have messed with the build options. I have tried turning batching off. I have tried building for Android 4 through 5. (Ice Cream, Jelly Bean, etc) I have tried turning dynamic text on and off. I have ensured the Buttons and text are made to be children of the canvas. I have only uploaded the game onto my Galaxy Note 4. I moved my background texture out of screen space in case it somehow covered the buttons on Android.


  • 1
    \$\begingroup\$ Instead of "I'm having a problem, are there any tutorials that cover this subject" you should add additional details about the exact problem you're dealing with now and what you've done to try to solve it. It sounds like you should get more error logging to give you additional information. \$\endgroup\$
    – MichaelHouse
    May 12 '15 at 14:50
  • \$\begingroup\$ Done and done. Almost completely reworded. \$\endgroup\$
    – Sluggernot
    May 12 '15 at 16:23
  • \$\begingroup\$ Given that you say these buttons and text are generated in code, is it possibly as simple as code that runs in the editor but not on device? \$\endgroup\$
    – jhocking
    May 12 '15 at 16:24
  • \$\begingroup\$ It appears to be that way, yes. Why would that happen? Byte56 says I need more error logging and I believe he is right. I will set up a static text box and... if my scripts wont run.. mind melt. I would write an error logging script but my scripts may not be running. \$\endgroup\$
    – Sluggernot
    May 12 '15 at 16:30
  • \$\begingroup\$ One guess: you'd have to set these up deliberately, but maybe you did and forgot? docs.unity3d.com/Manual/PlatformDependentCompilation.html \$\endgroup\$
    – jhocking
    May 12 '15 at 16:43

Bug reported:

Unity does not appear to generate UI elements upon Start. User input, or possibly some arbitrary amount of time in necessary until the application/game will generate the UI elements.

I made my app wait to generate the buttons until I hit a button and it worked as intended.

I suspect generating the UI from the Update() func would work properly. I would just need to add a bool check for initialization statements

  • \$\begingroup\$ good catch, tricky use case. Try Invoke() from Start() to see if waiting a bit works. \$\endgroup\$
    – jhocking
    May 13 '15 at 18:33
  • \$\begingroup\$ As soon as I am home, I will do this. \$\endgroup\$
    – Sluggernot
    May 13 '15 at 18:43
  • \$\begingroup\$ Invoke does not appear to help. Tried 3 seconds. \$\endgroup\$
    – Sluggernot
    May 14 '15 at 1:55
  • \$\begingroup\$ Also 5 seconds. No worky. Surprised im the first to notice. Which is why I still have the inkling I'm just being stupid somewhere. \$\endgroup\$
    – Sluggernot
    May 14 '15 at 2:02
  • \$\begingroup\$ Well, I can't imagine many other people are generating the new UI elements from code. In fact, I didn't realize you could. I'd love to see you edit in some of that code into the original question... \$\endgroup\$
    – jhocking
    May 14 '15 at 3:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.