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?
Answer by Matthew A
Nov 11, 2010 at 02:04 PM
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.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
No one has followed this question yet.
Text highlighter GUILayout textfield not aligned vertically with text
GUILayout Textfield not editable just static
TextField eats all keys as of 3.4.0
TextField does not show up
Head Scratcher for GUILayout.textfield