Scene Settings window reference
Find the sky, fog, shadow, and post-processing settings in the Scene Settings window.
Read time 6 minutesLast updated 3 hours ago
Use the Scene Settings window to control the sky, fog, shadows, and post-processing effects of the current scene. These settings change the light and color of the whole scene.
To open the Scene Settings window, open the Window menu (⋯) of any window group and select Add window > Scene Settings.
If you make a change in this window while the game is running, the change applies immediately. Unity Spark doesn't save the change, and you lose it when you stop the game. Stop the game to change the saved scene. To change these settings as part of your game, for example, to darken the sky as night falls, use a script.
For step-by-step instructions, refer to Choose a sky for a scene, Add fog and adjust shadows, and Add post-processing effects.
Environment
Under Environment, the Skybox grid shows the skies in your project. The sky also lights your scene. New projects start on Day Sunny.
To add another sky:
- Select Add sky (+).
- Choose a built-in sky from Stock skies or your own sky image from My Textures.
The Environment section contains the following settings.
Setting | Description |
|---|---|
| Rotation | Turns the sky around the scene (0 to 360°). Useful for putting the sun where you want it. |
| Tint | Colors the whole sky. |
| Exposure | Makes the sky brighter or darker, from 0 to 8. New projects start at 0.25. |
| Ambient | Sets how much the sky lights your objects (0 to 2). |
| Reflection | Sets how much the sky shows up in shiny surfaces (0 to 2). |
Fog
Enable Fog to make the fog settings available. New projects start with a light fog already enabled. The Fog section contains the following settings.
Setting | Description |
|---|---|
| Fog mode | Sets how fog builds up with distance. Linear makes fog start at the Start distance and become solid at the End distance, which is good for hiding the edge of a level. Exponential makes fog thicken gradually at the rate that Density sets, which is good for mist and atmosphere. |
| Color | Sets the color of the fog. |
| Start | Sets the distance from the camera at which fog begins (0 to 500). Available when Fog mode is Linear. |
| End | Sets the distance from the camera at which fog becomes solid (0 to 1000). Available when Fog mode is Linear. |
| Density | Sets how quickly fog thickens with distance (0 to 0.2). Available when Fog mode is Exponential. |
Shadows
Shadows come from the scene's main directional light (the sun). The Shadows section contains the following settings.
Setting | Description |
|---|---|
| Distance | Sets how far from the camera Unity Spark draws shadows. New projects start at 80. A shorter distance gives sharper shadows. |
| Resolution | Sets the shadow detail, from 256 to 4096 (default 2048). Higher values are sharper but use more processing power. |
| Cascades | Sets the number of shadow detail levels, from 1 to 4, so shadows near the camera stay crisp. New projects use 4. With more than one, Split sliders set where each level ends. |
2D Sorting
The 2D Sorting section decides the order in which 2D cameras draw sprites and tiles that overlap. It contains the following settings.
Setting | Description |
|---|---|
| Sort mode | Sets how Unity Spark decides which overlapping sprite or tile appears in front: Default, Perspective, Orthographic, or Custom Axis. Default sorts based on the camera's projection. Use Custom Axis for isometric tilemaps, so that objects lower on the screen appear in front. |
| Sort axis | Sets the direction Unity Spark sorts along. New projects use |
The Sorting Layer and Order in Layer of each sprite still decide which sprite appears on top before this sorting applies. For more information, refer to 2D objects and components reference.
Post-processing
Post-processing is the finishing layer applied on top of the image. Enable each effect with the checkbox in its header, except Tonemapping, which has no checkbox. To disable Tonemapping, set its mode to None.
On phones and tablets with 4 GB of memory or less, the published game disables Bloom, Ambient Occlusion, Screen Space Reflections, Depth of Field, and Motion Blur, so don't rely on these effects for gameplay.
The following table describes each effect and its settings.
Effect | Description |
|---|---|
| Bloom | Makes bright areas glow. Settings: Intensity, Threshold, Scatter, Tint, Clamp. |
| Lens Flare | Adds flares and streaks around the brightest spots on screen. Settings: Intensity, Tint, Streaks, Streak Length, Streak Angle, Streak Threshold. |
| Ambient Occlusion | Adds soft shadows in corners and creases. Settings: Intensity, Radius, Falloff Distance, Quality, Method, Blur Quality. |
| Screen Space Reflections | Reflects the scene in shiny surfaces. Settings: Strength, Min Smoothness, Quality, Max Distance. |
| Vignette | Darkens the edges of the screen. Settings: Intensity, Smoothness, Color. |
| Chromatic Aberration | Splits colors apart toward the edges, like a low-quality lens. Settings: Intensity. |
| Lens Distortion | Bulges or pinches the image, like a fisheye. Settings: Intensity, Scale. |
| Film Grain | Adds film-style noise. Settings: Type, Intensity, Response. |
| Depth of Field | Blurs objects that are nearer or farther than the point in focus. Mode sets the blur style: Gaussian blurs by distance with Start, End, and Max Radius, and Bokeh imitates a camera lens with Focus Distance, Aperture, and Focal Length. Settings: Mode, Start, End, Max Radius, Focus Distance, Aperture, Focal Length. |
| Motion Blur | Blurs the image when the camera moves quickly. Settings: Intensity, Clamp, Quality. |
| Color Adjustments | Adjusts the color and tone of the whole image. Settings: Exposure, Contrast, Saturation, Hue Shift, Filter. |
| White Balance | Makes the image warmer or cooler. Settings: Temperature, Tint. |
| Split Toning | Tints shadows and highlights separately, for example, teal and orange. Settings: Shadows, Highlights, Balance. |
| Tonemapping | Controls how Unity Spark compresses bright colors. Modes: None, Neutral, or ACES. |
Show in viewport affects only what you view while you edit. Effects appear when you play and in your published game, but phones and tablets with low memory disable some of them.
Custom Shader Settings
Use the Custom Shader Settings section when a custom shader needs to read what's already on screen. Both settings are off by default. Each one adds an extra full-screen copy every frame, which slows your game down, so enable them only when a shader needs them.
Setting | Description |
|---|---|
| Opaque Texture (Scene Color) | Lets a shader read the color of the scene behind it, for example, to make glass or water distort what's behind it. |
| Depth Texture (Scene Depth) | Lets a shader read how far away each point on screen is, for example, to make water fade where it meets the shore. |