- Home /
Question by
SomeRandomGuy · Jun 11, 2013 at 09:41 AM ·
androidbuttonguilayout
Unity android- GUILayout button not showing text?
Hi,
Does anyone know why GUILayout buttons don't seem to show any text? If I replace the text with an image it works fine, but text is not working at all. I've tried assigning text to a variable, like you would with an image, but this doesn't show up either. Any clues?
GUILayout.BeginHorizontal();
if(GUILayout.Button(testTex))
{
//shows texture, if variable is replaced by a string variable, nothing shows up
}
if(GUILayout.Button("Continue"))
{
//does not show any text
}
GUILayout.EndHorizontal();
Comment
Best Answer
Answer by Bunny83 · Jun 11, 2013 at 09:55 AM
Do you use a custom GUI skin? Have to set the Image Position to "Image Only"? Check your button style.
Other than that i don't know what could cause that. I use a lot GUILayout stuff on Android and it's all working pretty well. I have 70+ custom styles in my skin ;)
hmm I was using a custom style, and tho I don't remember setting it to image only, it was set to it. Guess that was just my mistake then, haha