Documentation

Unity Spark

Open Unity Spark

Unity Spark

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.

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:
  1. Select Add sky (+).
  2. 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

RotationTurns the sky around the scene (0 to 360°). Useful for putting the sun where you want it.
TintColors the whole sky.
ExposureMakes the sky brighter or darker, from 0 to 8. New projects start at 0.25.
AmbientSets how much the sky lights your objects (0 to 2).
ReflectionSets 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 modeSets 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.
ColorSets the color of the fog.
StartSets the distance from the camera at which fog begins (0 to 500). Available when Fog mode is Linear.
EndSets the distance from the camera at which fog becomes solid (0 to 1000). Available when Fog mode is Linear.
DensitySets 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

DistanceSets how far from the camera Unity Spark draws shadows. New projects start at 80. A shorter distance gives sharper shadows.
ResolutionSets the shadow detail, from 256 to 4096 (default 2048). Higher values are sharper but use more processing power.
CascadesSets 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 modeSets 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 axisSets the direction Unity Spark sorts along. New projects use
(x: 0, y: 1, z: 0)
, which sorts by height on the screen and suits Isometric tilemaps. For Isometric Z as Y tilemaps, use
(x: 0, y: 1, z: -0.26)
. Appears only when Sort mode is Custom Axis.
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

BloomMakes bright areas glow. Settings: Intensity, Threshold, Scatter, Tint, Clamp.
Lens FlareAdds flares and streaks around the brightest spots on screen. Settings: Intensity, Tint, Streaks, Streak Length, Streak Angle, Streak Threshold.
Ambient OcclusionAdds soft shadows in corners and creases. Settings: Intensity, Radius, Falloff Distance, Quality, Method, Blur Quality.
Screen Space ReflectionsReflects the scene in shiny surfaces. Settings: Strength, Min Smoothness, Quality, Max Distance.
VignetteDarkens the edges of the screen. Settings: Intensity, Smoothness, Color.
Chromatic AberrationSplits colors apart toward the edges, like a low-quality lens. Settings: Intensity.
Lens DistortionBulges or pinches the image, like a fisheye. Settings: Intensity, Scale.
Film GrainAdds film-style noise. Settings: Type, Intensity, Response.
Depth of FieldBlurs 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 BlurBlurs the image when the camera moves quickly. Settings: Intensity, Clamp, Quality.
Color AdjustmentsAdjusts the color and tone of the whole image. Settings: Exposure, Contrast, Saturation, Hue Shift, Filter.
White BalanceMakes the image warmer or cooler. Settings: Temperature, Tint.
Split ToningTints shadows and highlights separately, for example, teal and orange. Settings: Shadows, Highlights, Balance.
TonemappingControls 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.
Note
On phones and tablets with 4 GB of memory or less, your published game disables some visual effects, such as Bloom, Ambient Occlusion, Screen Space Reflections, Depth of Field, and Motion Blur, to keep it running smoothly.

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.

Additional resources