Question by
smarjanovicng · Nov 30, 2018 at 02:32 PM ·
textstringonguilabel
On Trigger Display Text but centered not centered?
public float GUI3 = 100;
public float GUI4 = 100;
private void OnGUI()
{
if (isListening == true)
{
GUI.Label(new Rect(Screen.width / 2, Screen.height - 300, GUI3, GUI4),message);
}
}
}
How to make the string message center its center to the center of the screen, this just centers is with up right corner of the text box? Thanks
rsz-capture.png
(254.6 kB)
Comment
Your answer
Follow this Question
Related Questions
OnGUI() Text Color through c# script 1 Answer
Convert UI Text into string? 1 Answer
Using variable names as seen in the inspector 1 Answer
how to connect my Health to my UI 1 Answer