x


Sideways textfield

Is it possible to display GUI elements such as textfields sideways (rotated 90 degrees from horizontal default position)?

more ▼

asked Jan 12 '11 at 06:39 AM

ina gravatar image

ina
3.3k 492 547 597

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Untested but should work:

function OnGUI () {

  GUIUtility.RotateAroundPivot(90.0, Vector2(116.0, 116.0)); //Replace 116.0 with your pivot point coordinates
  //Your GUI code here
}
more ▼

answered Jan 12 '11 at 08:19 AM

YoshieMaster gravatar image

YoshieMaster
200 11 11 15

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3669
x149
x134
x54

asked: Jan 12 '11 at 06:39 AM

Seen: 638 times

Last Updated: Jan 12 '11 at 06:39 AM