πLoad Biome Settings
The Load Biome Settings window allows you to load and apply saved biome settings to a TerraForge Terrain Generator.
Last updated
The Load Biome Settings window allows you to load and apply saved biome settings to a TerraForge Terrain Generator.
Last updated
To open the Load Biome Settings
window, navigate to: Tools > TerraForge 2 > Load Biome Settings
in the Unity Editor menu bar.
The interface includes fields and buttons for selecting the terrain generator and biome settings:
Terrain Generator
Type: Object Field
Description: Assign the TerraForge Terrain Generator
to which the biome settings will be applied. Drag and drop the component from your scene into this field.
Biome Settings
Type: Object Field
Description: Assign the Biome Settings
file from which the settings will be loaded. Drag and drop the saved Biome Settings asset into this field.
Load and Apply Biome Settings
Type: Button
Description: Click this button to load the biome settings from the specified file and apply them to the selected terrain generator.
Assign the Terrain Generator
Drag and drop the TerraForge Terrain Generator
component into the Terrain Generator field.
Assign the Biome Settings File Drag and drop the Biome Settings asset into the Biome Settings field.
Load and Apply Settings Click the Load and Apply Biome Settings button. This will transfer the settings from the file to the terrain generator, updating its configuration.
ShowWindow()
: Opens the Load Biome Settings
window via the Unity menu.
OnGUI()
: Renders the interface for selecting the terrain generator and biome settings. Includes a button for loading and applying the settings.
LoadAndApplyBiomeSettings()
: Handles loading settings from the Biome Settings
file and applying them to the TerraForge Terrain Generator
. It updates terrain height, terrain layers, and hydraulic erosion layer settings. Displays error dialogs if either field is not assigned, and a success dialog upon successful application.
Error Handling: If either the Terrain Generator
or Biome Settings
file is not assigned, an error dialog will prompt you to provide the necessary information.
Success Confirmation: A confirmation dialog appears upon successful application of the settings, indicating that the biome settings have been applied correctly.