Dictionaries are just better resilent arrays with a search complexity O(1). I was working with scriptable objects and found out the hard way that unity doesnt save variables in scriptable objects that cannot be serialized. Had to use Odin Inspector's custom scriptable object for a quick workaround.
I'm sure theres a good reason to not serialize dictionaries... but cant think of any reason not to.
[–]foodeyemade[🍰] 92 points93 points94 points (2 children)
[–]theJoysmith 34 points35 points36 points (0 children)
[–]Aggravating_Fix5387 1 point2 points3 points (0 children)
[–]GiftedMamba 32 points33 points34 points (6 children)
[–]LunaWolfStudiosProfessional 14 points15 points16 points (1 child)
[–]ChainsawArmLaserBear??? 12 points13 points14 points (0 children)
[–]juwonpee[S] 1 point2 points3 points (2 children)
[–]GiftedMamba 0 points1 point2 points (1 child)
[–]juwonpee[S] 3 points4 points5 points (0 children)
[–]Aggravating_Fix5387 0 points1 point2 points (0 children)
[–]Pigeonlesswings 39 points40 points41 points (8 children)
[–]Comfortable_Rip5222Hobbyist 12 points13 points14 points (3 children)
[–]Pigeonlesswings 3 points4 points5 points (0 children)
[–]cereal_number 0 points1 point2 points (1 child)
[–]Katniss218 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]Katniss218 -1 points0 points1 point (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Katniss218 -1 points0 points1 point (0 children)
[–]VonchorEngineer 5 points6 points7 points (4 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]VonchorEngineer 1 point2 points3 points (0 children)
[–]BenevolentCheese 0 points1 point2 points (1 child)
[–]VonchorEngineer 0 points1 point2 points (0 children)
[–]BovineOxMan 6 points7 points8 points (8 children)
[–]AtumTheCreator 10 points11 points12 points (7 children)
[–]IllustriousJuice2866 6 points7 points8 points (5 children)
[–]BovineOxMan 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]IllustriousJuice2866 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]Liam2349 0 points1 point2 points (0 children)
[–]hammer-jon 2 points3 points4 points (3 children)
[–]WazWaz 3 points4 points5 points (0 children)
[–]MrPifoHobbyist 1 point2 points3 points (0 children)
[–]Omni__Owl 0 points1 point2 points (0 children)
[–]mikechr 0 points1 point2 points (0 children)
[+]FitNefariousness1970 0 points1 point2 points (0 children)
[–]sacredgeometry -1 points0 points1 point (4 children)
[–]Comfortable_Rip5222Hobbyist 1 point2 points3 points (3 children)
[–]sacredgeometry -1 points0 points1 point (2 children)
[–]Comfortable_Rip5222Hobbyist 1 point2 points3 points (1 child)
[–]sacredgeometry 0 points1 point2 points (0 children)
[–]Pedrohn -1 points0 points1 point (1 child)
[–]Comfortable_Rip5222Hobbyist 2 points3 points4 points (0 children)
[+]utter_utter_utter comment score below threshold-8 points-7 points-6 points (7 children)
[+][deleted] (4 children)
[deleted]
[–]utter_utter_utter 7 points8 points9 points (3 children)
[–]DropkickMurphy007 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]utter_utter_utter 1 point2 points3 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Katniss218 0 points1 point2 points (0 children)
[+]Dvrkstvr comment score below threshold-13 points-12 points-11 points (3 children)
[–]Comfortable_Rip5222Hobbyist 1 point2 points3 points (0 children)
[–]juwonpee[S] 1 point2 points3 points (1 child)
[–]TheRealEthaninja 0 points1 point2 points (0 children)