Gui text field

Hey-o

So Im writing highscores to the local drives via player prefs. As per the car racing tut. So what happens is the “enter your name” page kicks in, and the text focus is in the safari searchbar, instead of on screen in the guitext field…

As Im working toward a webplayer release, I would like to find a way round this. This type of programming is quite different to what I’ve managed to do so far, so if anyone has any tips, that would be very welcome.

Thanks
AC

1.6.2

Anyone? I’m at standstill on this project…
AC

Have you tried using GUI.FocusControl?

GUI.SetNextControlName("input");
myText = GUILayout.TextField(myText, GUILayout.Width(120.0));

GUI.FocusControl("input");

That code resets the focus to the text field every frame, which you prob wont want, but you get the idea.

Hopefully that will work.
-Jeremy

Sounds like Unity 2 lingo. Im finishing up a couple of 1.6.2 games before I Upgrade and start developing in 2.0. I will check it out though. Thanks
AC

Ah ok, you don’t mean the 2.0 GUI’s TextField. Gotcha.

Don’t know how to help your problem though, sorry man.

-Jeremy