I've started an old project again (with new ideas and in Unity) and I'm stuck. Basically I need a lot of public arrays (mostly so they appear in the editor). Is there a way to "name" those arrays using existing strings? For example :
string[] arrayNames = new string[]{"FirstArray", "SecondArray", "ThirdArray"};
for (int i=0; i<arrowNames.Length; i++){
//Here i would create the new array using the string
public Sprite[] arrowNames[i] = new Sprite[10];
//Code to populate new array comes here
}
This code is just the idea of what i need. Anyone know a way to do this? Thanks.