World Environment making screen go black in 2D

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By itaypoo

I was trying to add some glow to my game and added an WorldEnvironment node to the scene. When changing the mode to Canvas and running the game, all I see is a black screen.
None of the WorldEnvironment node settings seem to change anything (It changes in the editor preview, but running the game still gives me a black screen.)

Screenshot - Pasteboard - Uploaded Image

Any help would be appreciated!

Have you tried tweaking the settings for the WorldEnvironment?

Ertain | 2022-08-13 23:18

I have tried messing with some settings to no avail. Any specific ones that might help? Ambient light and Energy did not fix it.

itaypoo | 2022-08-14 08:42

How about the Camera? Have you assigned the new WorldEnvironment in the Camera node settings?

Ertain | 2022-08-14 08:57

No, How would I do that?

itaypoo | 2022-08-14 09:55

I was mistaken; a WorldEnvironment node can’t be assigned to a Camera2D. It can only be assigned to a Camera, i.e. one that’s meant for 3D.

Could it be due to some other node? That parallax node, for instance? Or a canvas node?

Ertain | 2022-08-14 21:46

Hey, thanks for the help. I managed to fix this by removing the Viewport node I had in the glboal (autoloaded) node. I’m pretty sure this is a bug?

itaypoo | 2022-08-15 16:25

:bust_in_silhouette: Reply From: umma

Try putting the environment node at the far bottom in the nodes list.

Still getting a black screen. Pasteboard - Uploaded Image

itaypoo | 2022-08-14 08:41

Does this persist when the environment node is not in the scene?

umma | 2022-08-15 00:12

Hey, thanks for the help. I managed to fix this bt removing the Viewport node I had in the glboal (autoloaded) node. I’m pretty sure this is a bug?

itaypoo | 2022-08-15 16:25

:bust_in_silhouette: Reply From: itaypoo

For anyone thats having this problem - This was fixed by removing the Viewport node I had in my global autoloaded node. There may be a bug with autoloaded Viewports and WorldEnviornment nodes.