Search Issue Tracker
By Design
Votes
0
Found in
5.6.0f3
Issue ID
913458
Regression
No
Changing RenderSettings.fogMode at runtime works in Editor, but not in Build
To reproduce:
1. Open the project, attached by user (bugFogMode.zip)
2. Open "main" scene
3. In Play mode, press any key
4. Observe how fogMode changes
5. Build the project for standalone
6. Launch the build
7. Press any key
8. Observe how fogMode changes
Expected: changing fogMode at runtime works both in the Editor and in the build
Actual: setting fogMode to anything else other than Linear at runtime does not work in build
Reproduced in 5.4.5p2, 5.5.3p2, 5.6.0f3, 5.6.1p1, 2017.1.0b6, 2017.2.0a1
By design: other fog variants aren't detected in the project so they aren't built to save space. It is possible to force the fog variants you want to package in your build. Go to "Edit -> Project Settings -> Graphics", scroll down at the bottom and you should see a "Fog" dropdown set to "Automatic". Switch it to "Manual" and check the variants you need.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Pop-up to save unsaved changes does not appear when closing a custom editor window using ESC key
- A new Additive Scene cannot be created when an empty Untitled Scene is not dirty
- [Scene View][Ubuntu] Prefab mode UI ghosting in HDRP
- Deleting AudioMixer asset throws MissingReferenceException and breaks the Audio Mixer window
- Crash on ScheduleGenerateTilingShape when modifying PolygonCollider2D path count and setting path vertices
Add comment