I need like at least 30 fold outs, which would take a lot of time and space if i wrote every fold out directly into the script.
Is it possible to generate them in the inspector?
Lets say i have an integer variable, which number represent the number of fold outs i want. So when i type in 30, it generates 30 fold outs which contains 3 variables each.
[System.Serializable]
public class YourThreeVariableContainer{
public bool variable1;
public bool variable2;
public bool variable3;
}
public YourThreeVariableContainer[] yourThreeVariableContainer = new YourThreeVariableContainer[30];
When you put this into a class it will generate those 30 entries with 3 bool each in the inspector. You can of course alter that amount, the int you’re mentioning will be shown. You can just change the bool types and names to whatever you want them to be.