File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
UnityProject/Assets/Plugins/Zenject/Source/Runtime/Install/Contexts Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ public void Install()
299
299
// UIDocument is defined in the UI Elements package. In Unity 2021.1 the package was deprecated
300
300
// in favor of including it in the UI Elements module. Earlier Unity versions already had that
301
301
// module, but it does not include UIDocument.
302
- #if USE_UI_ELEMENTS_PACKAGE || ( USE_UI_ELEMENTS_MODULE && UNITY_2021_1_OR_NEWER )
302
+ #if ( USE_UI_ELEMENTS_PACKAGE && ! ZENJECT_DISABLE_DEFAULT_UI_ELEMENTS_INJECTION ) || ( USE_UI_ELEMENTS_MODULE && UNITY_2021_1_OR_NEWER && ! ZENJECT_DISABLE_DEFAULT_UI_ELEMENTS_INJECTION )
303
303
List < GameObject > rootObjectsInScene = new List < GameObject > ( ) ;
304
304
gameObject . scene . GetRootGameObjects ( rootObjectsInScene ) ;
305
305
for ( int i = 0 ; i < rootObjectsInScene . Count ; i ++ )
You can’t perform that action at this time.
0 commit comments