Why do textField not like private vars? They’ve been returning null reference exceptions for me.
This below example just shows the two lines. In my script the var is outside the function as should be and the textField is in the Gui function as should be lol.
Work around : I’m using a public var with @HideInInspector
private var setName : String; // The Data Set name.
setName = GUI.TextField (Rect (205,50,180,25), setName, 12);