- Home /
Not loosing focus
Hello, I'm writing a chat, and want to make written text selectable but not editable, this is the code I use:
int a = 0;
ArrayList Buffer = new ArrayList();
foreach (string Entry in Buffer){
GUI.TextArea(new Rect(10,10+(25*a),Screen.width / 1.11f - 20,25),Entry);
a++;
}
I have already tried to save the current focus before adding a new line(GUI.TextArea), and restoring it later, but it doesn't work properly, if you are writing a message it will select the whole text and when you keep writing it erases it.
Thanks.
Comment
Your answer
Follow this Question
Related Questions
How can I release gui focus via code? 6 Answers
Focus on InputField upon key press? 3 Answers
How to prevent ignored input after typing in a GUI? 0 Answers
Defocus input line? 0 Answers