может считывать вводимую клавишу и заносить в переменную? кто сталкивался?
Синтаксис:
Используется csharp
using UnityEngine;
using System.Collections;
public class vvod : MonoBehaviour {
public string text;
void OnGUI() {
Event e = Event.current;
if (e.isKey)
text = text+e.character;
}
}
using System.Collections;
public class vvod : MonoBehaviour {
public string text;
void OnGUI() {
Event e = Event.current;
if (e.isKey)
text = text+e.character;
}
}
Скрытый текст: