Saving Dictionary of a Class not working
Posted: Tue Aug 25, 2020 3:34 am
I have a GameManager class that holds a dictionary of a class TileManager. I have made an ES3Type for TileManager as well as GameManager. When saving GameManager and loading it via loadinto, it works fine with normal types, but when I try to access the dictionary TileManagerDict it returns true on TileManagerDict.Containskey(SceneName), but when accessing that TileManagerClass it throws a null exception error.
I know that the way I am accessing the data isn't an issue because I'm able to access the dictionary during runtime, its only after saving and loading that it returns null exception error.
I made a type TileManagerArray as well but that didn't work either.
Any ideas?
I know that the way I am accessing the data isn't an issue because I'm able to access the dictionary during runtime, its only after saving and loading that it returns null exception error.
I made a type TileManagerArray as well but that didn't work either.
Any ideas?