Keyboard problem

Hi,

Can anyone tell me how to use the iphone keyboard? I tried to use the unity3d script:

#pragma strict

var inputURL : String = "http://www.unity3d.com";
private var keyboard : TouchScreenKeyboard;

function Start () {

}

function Update () {

}


	// Opens native keyboard optimized for URL entry

	
	function OnGUI() {
			if (GUI.Button(Rect(0, 10, 200, 32), inputURL))
				keyboard = TouchScreenKeyboard.Open(inputURL, TouchScreenKeyboardType.URL);

			if (keyboard)
				inputURL = keyboard.text;
			}

And this:

#pragma strict

private var teclado        : iPhoneKeyboard;

function Start () {

}

function Update () {

}

function OnMouseDown() {
	teclado =iPhoneKeyboard.Open(tecladoNombre ,iPhoneKeyboardType.Default);
}

None works for me, in the first pulse on the GUI but the keyboard does not appear.

The second I’ve attached to a block, the keyboard should appear pressing the block, right? does not appear.

Thanks,
Jasalla

I tested your first script and on first press of the button the keyboard appears:

#pragma strict

var inputURL : String = "http://www.unity3d.com";
private var keyboard : TouchScreenKeyboard;

function Start () {

}

function Update () {

}

// Opens native keyboard optimized for URL entry
function OnGUI() {
	if (GUI.Button(Rect(0, 10, 200, 32), inputURL))
		keyboard = TouchScreenKeyboard.Open(inputURL, TouchScreenKeyboardType.URL);

	if (keyboard)
		inputURL = keyboard.text;
}

Tested on iPhone 5s, iOS 7.1.1, Unity 4.3.4.

Could you provide more info on device and iOS version? If possible make a video showing the failure. If it persists send a bug report with all that info:

Hi,

I’m using Unity 4.3.4f1, on iPhone 4 iOS 6.1.2.

I cant make a video, I only have one movil. Unity doesn’t show any error, but when I press the button the keyboard doesn’t appears.
This is the game screen with the button:
1633714--100775--$Captura de pantalla 2014-05-20 a la(s) 09.59.46.png

Thanks for the help,
Jasalla

If you have an iMac/MacBook you can make a video with its integrated camera and Quicktime (free version too, File > New Movie Recording). Record the failure, upload it to a free file/video hosting service (i.e. Dropbox, Youtube, etc.), and submit a bug report with the link and all that information, please. Otherwise just submit the information. That will be very helpful :slight_smile: