ArgumentException: An element with the same key already exists in the dictionary. for 1.2.3 scene variables
So I just updated my project to Bolt 1.2.3. However, I'm suddenly getting a huge cascade of errors throughout the project. Most of this seems to be related to scene variables.
Multiple scene variables across multiple scripts are throwing the error:
ArgumentException: An element with the same key already exists in the dictionary.
whenever I try to define them via macro at runtime. They then fail to define, and then all of the scripts that depend on them blow up. Not all of the scene variables are doing this though, and I can find no common thread between those that are causing the problem.
I did not have this issue on 1.2.2, although I was getting the errors with the Scene variables singleton whenever I'd load a new scene, which is what prompted me to update.
I'm happy to investigate this further, but frankly I'd need some direction to do so. The whole thing is blowing up on me and I have no idea where to look first.
Also, I don't know if it's related, but I also get the error:
Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?)
when loading a scene where the ArgumentException occurs.
Oh, and there's a random gameObject type object variable that I CANNOT get to save on one of my prefabs all of the sudden. It keeps resetting to type Null every time I hit play.
Customer support service by UserEcho