I’m trying to use theGUILayout.TextField to display and edit an int. But I keep getting “FormatException: Input string was not in the correct format” on what I know should work.
My code is:
x = int.Parse(GUILayout.TextField(y.ToString()));
X is an public int, set by another script elsewhere.