Code: Select all
public class ItemMaster
{
[ES3NonSerializable]
public Item itemObject;
[Header("Item State")]
public ItemState itemState;
public bool itemFavorite;
[Header("Amount of Item")]
public int itemNormalQuality;
public int itemLowQuality;
public int itemHighQuality;
public int itemEnchantedQuailty;
}
Code: Select all
[CreateAssetMenu(fileName = "New Potion Master", menuName = "Add/Master/Potion Master")]
public class PotionMaster : ScriptableObject
{
public bool potionDirty;
public string potionHash;
public List<ItemMaster> potionList = new List<ItemMaster>();
}
I feel like I should just be able to select the main Key "potionMaster0" and the sub-key "itemState". Is this thinking wrong?
update 8/9: I got it working by off loading the data into a itemTempList all at once, then transfer the data into the master list without overriding the SO. Keeping the SO untouched makes adding items in the future much easier and I don't have to add them to the Easy Save 3 Ref. I still would like to know how you would approach the issue above, is there a better way?