I Cant edit my TextField

this time i’m having trouble on editing my player name input(it only shows it’s default value). can’t i access my data on the Data Class I’ve created??

 var data : Data; // where Data contains the variable pname



function PlayerNaming(windowID : int) // this is a part of my window function
{

GUI.TextArea(new Rect(5,20,140,40),data.pname);//pname is the playername to be
GUI.Button(new Rect(5,70,140,25),"START");//displayed on the TextField in which
                                              //i can't edit

}

TextArea take your text in paramter and return the new text, So you need to update your variable. Meaning (If data.pname isn’t read-only):

data.pname = GUI.TextArea(new Rect(5,20,140,40), data.pname);