hi, in this lecture we are building a dictionary to get a node based on its ID
my question is do i have to keep building it even when i build the game
do i have to keep the ‘populateDictionary’ function in awake
if yes why the dictionary is emptying it self and is there a way to make it populated once and only re populate it when somthing is changed
Dictionaries aren’t “serializable” (directly, there are some 3rd party options out there). This means that the dictionary isn’t populated in a built game. This means that yes, you need that populateDictionary in Awake() to ensure that you can use it to access the nodes via the Dictionary in a built game.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.