how do you access textarea parameters?

I don’t understand how to access the parameters of a gui.textarea. It says there are parameters such as text, position,etc, but if Gui.TextArea returns a string
how do you access the parameters?

For example from the docs:

stringToEdit = GUI.TextArea (Rect (10, 10, 200, 100), stringToEdit, 200);
//stringToEdit= a string.

so you can’t do

My goal is to resize the textarea depending on how many characters the user types in.


You could have a variable control the width and then set that somewhere else

float textWidth = 200;
stringToEdit = GUI.TextArea(Rect(10,10,textWidth, 100), stringToEdit, 200);