Open TarasLazorivInnovecs opened 3 years ago
Hi! If you look into the method ZenjectSceneLoader is using some static variables inside SceneContext. It is kind of ugly, but right now it is the way it is...
If you want to work around it, just await/yield the first scene load then start the next one
Hi! If you look into the method ZenjectSceneLoader is using some static variables inside SceneContext. It is kind of ugly, but right now it is the way it is...
If you want to work around it, just await/yield the first scene load then start the next one
Hi, yes that workaround I use for now. I hope zenject will allow to bind dependency into two parallel scenes
When you load additive scene by default SceneManager (that contains SceneContext), and after that trying to load new additive scene by ZenjectSceneLoader with some binding to context - Bindings will be applied to the first scene.
To Reproduce
FirstScene and SecondScene both have SceneContext
Expected behavior SecondScene must have binded class Camera
Current behavior FirstScene have binded class Camera
Extenject and Unity info (please complete the following information):