having an issue with no global 2d lights showing up in my build: i have a main menu level select scene and levels, and scene transitions are done with SceneManagement.LoadScene(). When i dragged all my levels into the hierarchy to test the level transitions in the editor, i initially got a “more than one global light on layer…” error that went away after unloading the level scenes and leaving only the main menu. after building, it appears as if all of the lights are gone, the scenes all look super dark, except for the canvas UI. i had one global light 2d in each scene, set to light “everything” in the layer select
#Global Light 2D appears to be gone when built
1 messages · Page 1 of 1 (latest)
I may be misunderstanding but why test the level transitions in the editor by drag and dropping the levels, rather than with the actual method you use at runtime? It seems the first thing you want to do is test the game in the editor the way the game is supposed to run
If there still are differences between the build and editor, another thing to check is that the build and editor are not using different quality levels
because when i tried testing the main menu as the only scene loaded in the editor, it couldn't load the other scenes
how do i do that?
or where should i look rather
What do you mean by "couldn't"
That shouldn't fail without an error or a cause
Project settings > Quality >
The quality level you click on to select is the one the editor uses
The one with a green checkbox is the one the particular build target uses by default
just tried and it worked, i have genuinely no idea what i was trying before
Your editor is using Very Low, while PC build target is using Ultra
Guessing that's what you made the test build for
What really matters is if they use different Render Pipeline Assets because that's the one that determines 2D lighting
Compare if they have different URP assets
Clickin on the assigned URP asset will take you to it in Project
i only see one URP asset in the project pane
also not sure how to set editor quality?
changing "Very Low" just changes the name of the quality level in the top selection area
oh you just click on it in the selection area
tried deleting all quality settings except one, the editor game view and build still differ
Which platform are you building to?