Describe the bug
Right at the start of the scene, an exception is thrown while calling the install method in the scene context:
ArgumentNullException: Value cannot be null.
Parameter name: e
at UnityEngine.UIElements.UQueryExtensions.Query (UnityEngine.UIElements.VisualElement e)
Line 305 in the SceneContext script.
To Reproduce
Add a UI Document to the scene
Add some Installer and scene context
Run the scene in WebGL
Expected behavior
Exception will not be thrown
If the idea of the lines that caused the bug was to inject dependencies into the ui document
Screenshots
Extenject and Unity info (please complete the following information):
Zenject version: 9.3.1
Unity version: 2021.3.11f1
Project's scripting backend: WebGL
Additional context
Exception thrown at rootVisualElement.Query()
My guess is that the problem is that the UI Document has [DefaultExecutionOrder(-100)], due to which the rootVisualElement is not yet ready to run during the Install method
Describe the bug Right at the start of the scene, an exception is thrown while calling the install method in the scene context:
Line 305 in the SceneContext script.
To Reproduce Add a UI Document to the scene Add some Installer and scene context Run the scene in WebGL
Repository example Repository with a ready-made example: https://github.com/naxa1ka/Zenject_Toolkit_Issue_Example The readme in repository contains all the details of the environment
Expected behavior Exception will not be thrown If the idea of the lines that caused the bug was to inject dependencies into the ui document
Screenshots
Extenject and Unity info (please complete the following information):
Additional context Exception thrown at rootVisualElement.Query() My guess is that the problem is that the UI Document has [DefaultExecutionOrder(-100)], due to which the rootVisualElement is not yet ready to run during the Install method
Error code