- Home /
Lock a textarea/textfield for editing
Hello,
Is it possible to lock a textarea/textfield for editing in Unity? So that it is static and unselectable.
Comment
Best Answer
Answer by Bunny83 · Aug 09, 2012 at 01:00 PM
Sure, just don't use a TextArea / TextField ;) The point is the kind of function you're using determines the behaviour of the gui element. The GUIStyle determines the look.
GUI.Label(yourRect, "The text field text", "textfield");
// |
// \__ Style name that should be used.
Same for GUILayout:
GUILayout.Label("The text field text", "textfield");