This repository was archived by the owner on Nov 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
4. Editing Tab
Halil Emre Yildiz edited this page Jan 12, 2024
·
13 revisions
The Editing tab contains the Merger and Splitter tools that allow you to merge or split a Terrain object.
Merger is a tool that allows you to merge four Terrain objects into one. This tool allows you to adjust the resolution and size of the merged Terrain object.
To use the Merger tool, follow these steps:
- Select the Editing tab and enable the Merger tool.
- Select four Terrain objects that you want to merge. The order of selection determines the position of the Terrain objects in the merged Terrain object. The first selected Terrain object is at the bottom left, the second selected Terrain object is at the bottom right, the third selected Terrain object is at the top left, and the fourth selected Terrain object is at the top right.
- In the Merge Settings section, adjust the properties of the merged Terrain object. The Resolution option determines the resolution of each tile of the merged Terrain object. The Size option determines the size of each tile of the merged Terrain object in world units.
- Click on the Merge button to merge the four Terrain objects into one.
The variables and UI elements of the Merger tool are as follows:
public Terrain[] Terrains; // The array of four Terrain objects that you want to merge
[Header("Merge Settings")]
public int Resolution = 513; // The resolution of each tile of the merged Terrain object
public float Size = 5; // The size of each tile of the merged Terrain object in world units
[Button("Merge")] Merge(Terrains, Resolution, Size); // The Merge button, which merges the four Terrain objects into oneSplitter is a tool that allows you to split a Terrain object into four. This tool allows you to adjust the resolution and size of the split Terrain objects.
To use the Splitter tool, follow these steps:
- Select the Editing tab and enable the Splitter tool.
- Select a Terrain object that you want to split.
- In the Split Settings section, adjust the properties of the split Terrain objects. The Resolution option determines the resolution of each tile of the split Terrain objects. The Size option determines the size of each tile of the split Terrain objects in world units.
- Click on the Split button to split a Terrain object into four.
The variables and UI elements of Splitter tool are as follows:
public Terrain Terrain; // The Terrain object that you want to split
[Header("Split Settings")]
public int Resolution = 513; // The resolution of each tile of split Terrain objects
public float Size = 5; // The size of each tile of split Terrain objects in world units
[Button("Split")] Split(Terrain, Resolution, Size); // The Split button, which splits a Terrain object into four