- Home /
Andoid enter text without gui
Hi all
I am creating a small android game and want the player to enter some text, but would like to do it without using any GUI elements to do it.
All menus and text in the game have been done in 3D without GUI elements, so would like to keep it that way.
Anyone know of a way to do it?
Since no one answered, I am guessing that it's not possible to activate the keyboard on android without using gui. A shame that I cant keep everything in 3d but have to use gui elements.
So disappoint "insert extremely disappointed smiley here"
I've never tried it, but have you looked at TouchScreen$$anonymous$$eyboard? http://docs.unity3d.com/Documentation/ScriptReference/TouchScreen$$anonymous$$eyboard.html
http://docs.unity3d.com/Documentation/ScriptReference/TouchScreen$$anonymous$$eyboard.Open.html
It seems to allow you to spawn a keyboard, then you'd just have to get keys pressed thanks to Input.
If this works, you are my new hero. Will try it when I get home later today.
Thx.
That's working perfectly. Thx.
Could you post an answer so that I can approve it please :-)
Answer by lvictorino · Aug 31, 2012 at 08:11 AM
I've never tried it, but have you looked at TouchScreenKeyboard?
Documentation describes TouchScreenKeyboard.Open as what you try to do. It seems to allow you to spawn a keyboard, then you'd just have to get keys pressed thanks to Input.
Your answer
Follow this Question
Related Questions
Using "fonts" that are actually images for a multi-outline effect. 2 Answers
Zoom at Text 1 Answer
Speed of Gui Text vs 3D Text Mobile 1 Answer
how to fix blurry text on android 4 Answers