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();

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 :wink: