x


TextField text pushed to left on space

When I use GUILayout.TextField in my script, I find that in the standalone player, the field is not enlarged when I press space, and instead the text is shoved to the left outside the boundary of the text field. This does not happen in the editor, however. Has anyone else experienced this and have any workarounds?

more ▼

asked Nov 11, 2010 at 01:55 PM

Matthew A gravatar image

Matthew A
517 26 22 34

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

1 answer: sort voted first

Well it turns out that it wasn't the standalone player, but using GUILayout.FlexibleSpace() (to prevent the textfield expanding to fill an entire Horizontal) that caused the problem. I guess I'll just have to try to get things placed where I want them some other way.

more ▼

answered Nov 11, 2010 at 02:04 PM

Matthew A gravatar image

Matthew A
517 26 22 34

(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:

x899
x237
x223

asked: Nov 11, 2010 at 01:55 PM

Seen: 1258 times

Last Updated: Nov 11, 2010 at 01:55 PM