This commit is contained in:
2020-07-04 14:41:25 +08:00
parent 70c346d2c1
commit a8f02e4da5
3748 changed files with 587372 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
using Mopsicus.Plugins;
using UnityEngine;
using UnityEngine.UI;
public class Demo : MonoBehaviour {
public MobileInputField InputText;
void Start () {
MobileInput.OnPrepareKeyboard += OnPrepareKeyboard;
MobileInput.OnShowKeyboard += OnShowKeyboard;
}
public void OnReturn () {
Debug.Log ("OnReturn action");
}
public void OnEdit (string text) {
Debug.LogFormat ("OnEdit action. Text: {0}", text);
}
public void OnEndEdit (string text) {
Debug.LogFormat ("OnEdit action. Text: {0}", text);
}
public void SetTextData () {
InputText.Text = "Text by script";
}
void OnPrepareKeyboard () {
Debug.LogFormat ("Keyboad will show");
}
void OnShowKeyboard (bool isShow, int height) {
Debug.LogFormat ("Keyboad action, show = {0}, height = {1}", isShow, height);
}
}