I'm creating a game in unity and I wish to have multiple enums inside one another and making the "dropdowns" visible in unity
public class ItemEnums{
public enum Type
{
CraftingMaterial,
Equipment,
Food,
Miscellaneous
}
public enum FoodType
{
Potion,
Edible,
Drink
}
public enum EdibleType
{
Meat,
Herbs,
Fruit,
Vegetables,
ProcessedFood
}
}
[CreateAssetMenu(fileName = "New Item", menuName = "Create new Item")]
[System.Serializable]
public class Items : ScriptableObject
{
public int id;
public string itemName;
[TextArea(3, 3)] public string description;
public GameObject prefab;
public Texture icon;
public int maxStack;
public float weight;
public int baseValue;
public ItemEnums.Type type;
as you can see I instantiated the enum type, but inside the type in the option food I want to instantiate the enum FoodType and inside the FoodType Edible I want to instantiate the EdibleType how do I do that?