IN THIS ARTICLE
Experiment Further
In this tutorial section, you can experiment with the created terrain to try out more features of the terrain system.
Scale the terrain
At this point, the terrain is 256 m x 256 m in size. However, the scale can be adjusted if desired.
Select the Terrain Spawner entity.
Set the Dimensions of the Axis Aligned Box Shape to
512.0, 512.0, 100.0
.Set the Z Dimension of the Transform to
50.0
.If either the heights or the surface materials look blocky, make sure that the Sampling Type on the Image Gradients is set to either
Bilinear
orBicubic
.Experiment by setting the box shape to other sizes.
Duplicate the terrain
Right-click on the Terrain Spawner entity in the Entity Inspector and choose Create Prefab….
A dialog will appear asking if you would like to move or retain the references to external entities. Select Move.
Create a second copy of the terrain in the level by right-clicking in the Entity Outliner and choosing Instantiate Prefab….
Experiment by moving the second copy around in the level.
Create a hole
Create a new entity (hotkey Ctrl + Alt + N). Name the entity
Terrain Hole
.With the entity selected, set each dimension of the Transform component’s Translate values to
0.0 m
so that the entity exists at the origin of the world.Add a Terrain Layer Spawner component and an Axis Aligned Box Shape component.
Set the Dimensions on the Axis Aligned Box Shape to
20.0
,20.0
,1.0
. This defines the size of the hole.On the Terrain Layer Spawner, disable Use Ground Plane and set the Sub Priority to 10. This creates a terrain spawner with no terrain data and a priority higher than the default.
In the viewport window, experiment by dragging the Terrain Hole entity around so that it overlaps different parts of the primary terrain.