IN THIS ARTICLE
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
If either the heights or the surface materials look blocky, make sure that the Sampling Type on the Image Gradients is set to either
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
With the entity selected, set each dimension of the Transform component’s Translate values to
0.0 mso 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
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.