Hi everyone, is there a way to increment a string array? Every time the MoveUpOne button is pressed I want someString to increment to the next element of the string Array.Can that be done?
public String someString;
public String[] someArray;
void Start(){
someString = someArray[0];
someArray = new string[]{"text","text2","text3"};
}
void OnGUI(){
if (GUILayout.Button("MoveUpOne", GUILayout.Width(50), GUILayout.Height(25))){
//Make someString increment from someArray[0] to someArray[1] and so on
}
}