GUILayout.TextArea/TextField not working.

Hello there.

I’m having a strange problem with GUILayout’s TextArea and TextField functions. While I used it several time before without having any problem, I can’t seem to find out what’s wrong here.

_currentFile = GUILayout.TextArea(_currentFile);

Where _currentFile is a member of my MonoBehaviour. This variable is only edited here. Does someone know what the hell is going on with TextField/TextArea all of a sudden ?

Thanks in advance. :slight_smile:

I finally found what was wrong. To highlight some elements, I used GUI.FocusControl which prevented me from focusing the TextField by clicking on it.

Really sorry for that useless question :x