Hey, would it be possible to make a it so that a specific variable will only appear in the inspector if the right Enum is selected. To visualize it here is what I thought it would look like:
public class Item_Database : MonoBehaviour
{
public Items[] items;
public enum ItemType {Edible, Drinkable, Weapon}
[System.Serializable]
public class Items {
public string name;
public ItemType itemType;
if(ItemType == Edible) {
public string howMuchRestore;
}
}
}
Thanks in advance!