I’m looking for a way to add to the inspector from a static (user defined array) to use on another class, using food for example:
public class myClass
{
public string[] food;
//User adds 'oranges', 'apples', 'bannanas' in inspector.
}
public class Human
{
//dynamically populate what is found in myClass.food into the inspector, Eg.
int Orange;
int Apple;
int bannanas;
}
So essentially it creates this array in the inspector without having to manually type it:
The reason I am trying to do it this way (Though it seems weird) is because I need one place for the artist to create these values in the inspector. That stay the same throughout the project.
The artist needs to create these food’s and the amounts dynamically. I can’t just use a var for each of these foods. Eg, myClass.orange = 10;
Even if you tell me what to look for I can check it out, anything helps.
Thanks!