private string inputText = "text";
private iPhoneKeyboard keyboard_;
// Updates button's text while user is typing
void OnGUI() {
if (GUI.Button(new Rect(0, 10, 200, 32), inputText))
keyboard_ = iPhoneKeyboard.Open(inputText);
if(keyboard_)
inputText = keyboard_.text;
}
}
How can i convert the following line to C# : if(keyboard_)??? Right now i get this error: Cannot implicitly convert type `UnityEngine.iPhoneKeyboard' to`bool' Thanks
Unfortunately no, and I already stopped development of this app so I didn't inspect further...
– 5argon