Version: 2020.2
Working with Heightmaps
Using Terrain at runtime

Terrain settings

The final tool on the five-icon toolbar is for settings. In the Inspector, click the gear icon to reveal the Terrain settings.

Basic Terrain

Property Function
Grouping ID The grouping ID for the Auto connect feature.
Auto Connect Check this box to automatically connect the current Terrain tile to to neighboring tiles sharing the same Grouping ID.
Reconnect On rare occasions, you might lose connections between Terrain tiles if you change the Grouping ID, or disable Auto connect for one or more tiles. To recreate connections between tiles, click the Reconnect button. Reconnect only connects two adjacent tiles if they have the same Grouping ID and if both tiles have Auto Connect enabled.
Draw Check this box to enable rendering of the Terrain.
Draw Instanced Check this box to enable instanced rendering.
Pixel Error The accuracy of the mapping between Terrain maps (such as heightmaps and Textures) and generated Terrain. Higher values indicate lower accuracy, but with lower rendering overhead.
Base Map Dist. The maximum distance at which Unity displays Terrain Textures at full resolution. Beyond this distance, the system uses a lower resolution composite image for efficiency.
Cast Shadows Use this to define how the Terrain casts shadows onto other objects in the Scene. Rendering.ShadowCastingMode controls how the Terrain shadow interacts with Scene objects.
Off The Terrain does not cast shadows.
On The Terrain casts shadows.
Two Sided Casts two-sided shadows from either side of the Terrain. Enlighten and Progressive Lightmapper do not support two-sided shadows.
Shadows Only Shadows from the Terrain are visible, but the Terrain itself is not.
Reflection Probes Use this to set how Unity uses Reflection Probes on Terrain. This setting only has an effect when Material is set to Built In Standard, or if you use a custom Material (with Material set to Custom) that supports rendering with reflection.
Off Disables Reflection Probes, and uses a skybox for reflection.
Blend Probes Enables Reflection Probes. Blending occurs only between probes. Uses default reflection if there are no Reflection Probes nearby, but no blending between default reflection and probe.
Blend Probes And Skybox Enables Reflection probes. Blending occurs between probes, or between probes and default reflection.
Simple Enables Reflection probes, but no blending occurs between probes when there are two overlapping volumes.
Material Lets you specify the Material to use for rendering Terrain.
Create The Create button only appears when you select a default Terrain Material. It does not appear when you select a custom Material. When you click Create, Unity creates a copy of the Material in your Project folder, which you can modify, and then automatically selects this new copy.

Tree and Detail Objects

Property Function
Draw Check this box to draw trees, grass, and details.
Bake Light Probes For Trees If you check this box, Unity creates internal Light Probes at the position of each tree, and applies them to tree renderers for lighting. These probes are internal, and don’t affect other renderers in the Scene.

If you don’t check this box, trees are still affected by Light Probe Groups. This option is only effective for trees with Light Probe enabled on their prototype Prefab.
Remove Light Probe Ringing If you check this box, Unity removes visible overshooting, which often appears as ringing on GameObjects that are affected by intense lighting. This setting reduces contrast, and is dependent on Bake Light Probes for Trees. For more information, see Light Probe Groups: Ringing.
Preserve Tree Prototype Layers Check this box if you want your tree instances to take on the layer values of their prototype Prefabs, instead of the Terrain GameObject’s layer values.
Detail Distance The distance from the camera beyond which details are culled.
Detail Density The number of detail/grass objects in a given unit of area. Set this value lower to reduce rendering overhead.
Tree Distance The distance from the camera beyond which trees are culled.
Billboard Start The distance from the camera at which Billboard images replace 3D Tree objects.
Fade Length The distance over which Trees transition between 3D objects and Billboards.
Max Mesh Trees The maximum number of visible Trees that are represented as solid 3D meshes. Beyond this limit, Billboards replace Trees.

Wind Settings for Grass

Property Function
Speed The speed of the wind as it blows across the grass.
Size The size of ripples on grassy areas as the wind blows over them.
Bending The degree to which the wind bends over grass objects.
Grass Tint The overall color tint applied to grass objects. The final color that appears is the Grass Tint multiplied by the Healthy Color and Dry Color settings of each grass object.

Wind Settings for Grass have no connection with Wind Zone components. The two are unrelated.

Mesh Resolution

Property Function
Terrain Width The size of the Terrain GameObject in its X-axis, in world units.
Terrain Length The size of the Terrain GameObject in its Z-axis, in world units.
Terrain Height The difference in Y-coordinate between the lowest possible heightmap value and the highest one, in world units.
Detail Resolution Per Patch The number of cells in a single patch (mesh). This value is squared to form a grid of cells, and must be a divisor of the detail resolution.
Detail Resolution The number of cells available for placing details onto the Terrain tile. This value is squared to make a grid of cells.

Holes Settings

Property Function
Compress Holes Texture If you check this box, Unity compresses the Terrain Holes Texture to the DXT1 graphics format in the Player during runtime. If you don’t check this box, Unity does not compress the Texture.

Texture Resolutions

Property Function
Heightmap Resolution The pixel resolution of the Terrain’s heightmap. This value must be a power of two plus one, for example, 513, which is 512 + 1.
Control Texture Resolution The resolution of the splatmap that controls the blending of the different Terrain Textures.
Base Texture Resolution The resolution of the composite Texture to use on the Terrain when you view it from a distance greater than the Basemap Distance.

Require resampling on change indicates that when you change properties under Texture Resolutions, the Editor resizes the Terrain tile’s content to the new size you specify, which can potentially affect the quality of your content.

Heightmap Import/Export buttons

The Import Raw and Export Raw buttons allow you to set or save the Terrain’s heightmap to an image file in the RAW grayscale format. You can create RAW format files in third-party terrain editing tools (such as Bryce), and you can open, edit, and save them in Photoshop. This allows for sophisticated generation and editing of terrains outside Unity.

Освещение

Property Function
Contribute Global Illumination Enable this check box to indicate to Unity that the Terrain influences Global Illumination computations. When you enable this property, Lightmapping properties appear.
Receive Global Illumination You can only configure this option if you’ve enabled Contribute Global Illumination above. If you don’t enable Contribute Global Illumination, the Terrain registers as non-static, and receives Global Illumination from Light Probes.

Lightmapping

Property Function
Scale in Lightmap Lets you specify the relative size of an object’s UVs within a lightmap. If you set this to zero, the object is not lightmapped, but still contributes lighting to other objects in the Scene. A value greater than 1.0 increases the number of pixels (the lightmap resolution) used for this GameObject, while a value less than 1.0 decreases it.
Lightmap Parameters Lets you adjust advanced parameters that affect the process of generating a lightmap for an object using global illumination. See Lightmap Parameters for more information about these settings.
Rendering Layer Mask Determines which rendering layer this Terrain lives on. When you use a scriptable render pipeline, you can specify an additional rendering-specific layer mask. This filters the renderers based on the mask the renderer has and the mask passed to the DrawRenderers command.

Terrain Collider

Property Function
Material A reference to the Physic Material that determines how this Terrain’s Collider interacts with other Colliders in the Scene.
Данные террейна. The TerrainData Asset that stores heightmaps, Terrain Textures, detail Meshes, and Trees.
Enable Tree Colliders Check this box to enable Tree Colliders.

  • 2020–01–16 Page amended

  • Updated content to reflect new UI and options

Working with Heightmaps
Using Terrain at runtime