Title kinda says it. Can’t find any clue everywhere.
public Vector2 Size = new Vector2( 40, 40 );
GUI.TextField (new Rect (10, 150, 200, 20), Size, 25);
the gui is in OnGUI and vector2 is just in the class
Title kinda says it. Can’t find any clue everywhere.
public Vector2 Size = new Vector2( 40, 40 );
GUI.TextField (new Rect (10, 150, 200, 20), Size, 25);
the gui is in OnGUI and vector2 is just in the class
public Vector2 Size = new Vector2( 40, 40 );
void OnGUI () {
float.TryParse (GUI.TextField (new Rect (10, 150, 200, 20), Size.x.ToString(), 25),out Size.x);
float.TryParse (GUI.TextField (new Rect (10, 350, 200, 20), Size.y.ToString(), 25),out Size.y);
}