public string test;
void Update()
{
//获取鼠标的位置
var input=Input.mousePosition;
//将鼠标位置tostring
test=input.ToString();
}
void OnGUI()
{
//GUILayout.TextArea文本区域
GUILayout.TextArea(test,200);
}
自定义输入

Paste_Image.png

Paste_Image.png
移动设备的输入

Paste_Image.png