Godot Version
v4.3.stable.official.77dcf97d8 (Apple Silicon M4 PRO)
Question
For whatever reason the WorldEnvironment disappears 1 second into play mode, and I can’t seem to find where the issue is. The Camera component doesn’t override the environment, and everything is default settings for the WorldEnvironment other then adding Fog (Removing fog doesn’t resolve the issue).
World environment works fine in editor.
Any ideas?
Some images:
Could be a ton of things.
Check for scripts affecting the WorldEnvironment, Any que_free’s calls or .visible = false on the WorldEnvironment
Multiple environment conflicts. Ensure you don’t have multiple WorldEnvironment nodes in your scene
Even though you mentioned the camera doesn’t override the environment, double-check the Camera3D’s environment property is set to null
Check the process mode of your WorldEnvironment node - it should be set to “Inherit” or “Always”
I dont know any more off the top of my head but you could ask reddit or wait for someone like Gert to respond lol.
Thank you for the response. Since posting I also checked to make sure viewport is not ticked to transparent, which it was not.
I checked that it wasn’t the engine or OSX build by creating a clean project, that worked.
As for your options. The game was once 2D and just started making it 3D today. No scripts reference world environment at all. I’ve tried deleting and re-adding world environment and cameras to no avail.
I tried removed all addons (only have Terrain3D) no change.
Checked remote during play, no weird duplications.
Camera environment is set to null
Check your project settings? particularly in the rendering section, Look for any custom environment settings in Project > Project Settings > Rendering > Environment.
Any custom shaders in use that might be affecting the environment?
This might sound dumb, But try just closing and reloading your project?
Any dynamic resource loading that might be replacing environment settings?
Lmk, I can look for more solutions later. After a brief nap.
No shaders in use with the project.
Tried closing and restarting the computer as well.
I’m tempted to just migrate to a clean project, however also kinda want to find the solution so it doesn’t happen again haha
Any ideas I’ll try out for sure!
Solved.
I decided to go through all project settings 1 by 1. Any that had the revert icon and I knew wasn’t default. I would reset to see if it made a difference.
The culrpit:
Project Settings > Display > Window > Per Pixel Transparency was set to allowed. Turning this off, solved it.
1 Like