Hey everyone, I just downloaded the Beta last night so forgive me if I've missed a thread or document that talks about this. (if there is please direct me to it!) I was using Unity's GUI to do some basic tests on the Vita, but using textfield doesn't pull up the keyboard, and trying to use TouchScreenKeyboard.Open(string) sporadically loads the keyboard for a frame and then closes it. Has anyone figured out a way to use the keyboard? Thanks!
This does it for me, i simplified it slightly so its easier to understand and doesn't have all my project specific crap with it 8) Code (csharp): private var keyboard : TouchScreenKeyboard; private var inputField = ""; //text input variable function OnGUI () { if (GUI.Button(Rect (40*widthScale, 235*heightScale, 365*widthScale, 45*heightScale), inputField)) { var keyboard = TouchScreenKeyboard.Open(inputField, TouchScreenKeyboardType.Default); } if (keyboard) { if (keyboard.active) { inputField = keyboard.text; } } }
Awesome, that was exactly what I need. Thank you! I guess I should have followed the example with the documentation rather than just trying my own thing...