is there a way to rotate a GUI Text?
lesfundi
is there a way to rotate a GUI Text?
lesfundi
no
mm, are there any work around some how?
Yes.
Don’t use GUI Text.
If its an issue of rotating the whole screen; you can always use iPhoneSettings.screenOrientation.
Use 3DText (the text mesh renderer)
and an Orthographic camera set to a known orthographic height (for iphone i tend to use a value of 1.6 so i can keep pixel-per-unit ratios 100:1)
Meaning a standard Cube primative with a 1,1,1 scaling would take up 100pixels on the screen.
the easiest setup for orthographic is: orthographic width = Screen.height → 1:1 3d to pixel unit ratio
especially interesting if you also have other 2D through 3D effects that you want to use
Sure you can rotate GUI text. Just in case anyone comes across this thread like I did and thinks, from the earlier responses, that you can’t:
GUI.Label(new Rect(10, 10, 150, 20), "This text is not rotated.");
GUIUtility.RotateAroundPivot(-90, new Vector2(160, 30));
GUI.Label(new Rect(10, 30, 150, 20), "This text is rotated.");
Unfortunately it creates blurry text on some platforms.