- Home /
Question by
bubblegumsoldier · Jul 11, 2012 at 01:00 PM ·
guitexturetextbox
Text and texture in GUI?
Hi, how can I add a text AND a picture onto a box or button like this?:
GUI.Box(Rect(Screen.width / 2 - 100, 200 + Screen.height / 3,200,100),"some text" + My_tx);
Comment
Answer by whydoidoit · Jul 11, 2012 at 01:57 PM
You can use a new instance of GUIContent which allows you to have both an image and a text content (and a tooltip) and use it in place of your text.
Your answer
Follow this Question
Related Questions
Gui appear and then fade to black 1 Answer
Problem with writing text in a box - typewriter style 1 Answer
GUI text appears behind drawn texture. 0 Answers
proper inventory system issue.. 1 Answer
Remove GUI Box Drawing? 1 Answer