Hi.
Sorry if this has been covered before. I couldnt find a related post through a quick search.
Been stuck on this for a while, but please, consider Im new at this.
I searched pretty much extensively and finally Id appreciate the Community support.
I have a simple application built for ipad.
On it I have a button, a few GUI text fields and also testing the new 4.6 UI.
Im running it through the UnityRemote4 app on my ipad.
I can click on the button on my ipad to activate events.
I can also click on the text fields and activate the respective text fields.
But the ios keyboard never shows up.
I tried a few variations and flavours of the same code.
As well as alternatives, as this snippet below (and similar) of code in uscript.
I can get all the UIs in place and responding to touch on my ipad. But never the keyboard.
Docs seems to hint the keyboard should pop up automatically:
Is this a limitation of the UnityRemote4?
Or am i missing anything else?
Related post:
http://www.uscript.net/forum/viewtopic.php?f=9&t=3717
Thank you in advance.
Litow
uscript (highly hacked here) snippet:
using UnityEngine;
public class uScriptAct_iOsKeyboard : uScriptLogic
{
private string inputURL = “http://google.com” ;
private string m_Text = “input text”;
private TouchScreenKeyboard keyboard;
public enum KBType { Default, ASCIICapable, NumbersAndPunctuation, URL, NumberPad, PhonePad, NamePhonePad, EmailAddress };
public bool Out { get { return true; } }
public void In(
string Text,
KBType KeyboardType,
bool autocorrection,
bool multiline,
bool secure,
bool alert,
string textPlaceholder,
out string TextOutput
)
{
textPlaceholder = m_Text;
TextOutput = Text;
}
public void OnGUI() {
if (GUI.Button(new Rect(0, 10, 200, 32), inputURL))
keyboard = TouchScreenKeyboard.Open(inputURL, TouchScreenKeyboardType.URL);
if (keyboard.done)
inputURL = keyboard.text;
}
}