Hi, I am new at Unity and I am trying to have the text alignment to be on left. But how could I do that?
What I have tried is like the image below:
Here is the code:
GUIContent boxText = new GUIContent("This is an example on how does the text on the box is align
My Name is");
void OnGUI()
{
Rect boxGUI = GUILayoutUtility.GetRect(boxText, "Box");
GUI.Box(boxGUI, boxText);
}
Anyone know how to make the text to be aligned to the left side?
Thank you.