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.

Sure, just don’t use a TextArea / TextField :wink: 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");