using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
using System.Runtime.InteropServices;
using System;
public class WebGLInputField : InputField
{
#if UNITY_WEBGL && !UNITY_EDITOR
[DllImport("__Internal")]//显示对话框
private static extern void ShowInputFieldDialog(string text);
[DllImport("__Internal")]//隐藏对话框
private static extern void HideInputFieldDialog();
[DllImport("__Internal")]//对话框是否显示中
private static extern bool IsInputFieldDialogActive();
[DllImport("__Internal")]//获取对话框的数据
private static extern string GetInputFieldValue();
[DllImport("__Internal")]//获取光标选中坐标(起点点)
private static extern int GetInputFieldCursortPosition();
[DllImport("__Internal")]//获取光标选中坐标(终点)
private static extern int GetInputFieldCursortFocusPosition();
[DllImport("__Internal")]//设置光标选择
private static extern void SetInputFieldCursortPosition(int selectionStart, int selectionEnd);
private bool captureAllKeyboardInput
{
get
{
return WebGLInput.captureAllKeyboardInput;
}
set
&n