ποΈClean Up Terrain Modifiers
The Clean Up Terrain Modifiers tool helps you remove unused or invalid terrain modifier assets from your project.
Last updated
The Clean Up Terrain Modifiers tool helps you remove unused or invalid terrain modifier assets from your project.
Last updated
To access the Clean Up Terrain Modifiers
window, navigate to: Tools > TerraForge 2 > Clean Up Terrain Modifiers
in the Unity Editor menu bar.
The interface is straightforward and includes a single button:
Clean Up
Type: Button
Description: Click this button to initiate the cleanup process. It scans for and deletes all TerraForgeTerrainPainterModifier
instances with unassigned or empty terrainData
.
Perform Cleanup
Click the Clean Up button. The tool will search for TerraForgeTerrainPainterModifier assets with unassigned or empty terrainData
and remove them from your project.
ShowWindow(): Opens the Clean Up Terrain Modifiers
window via the Unity menu.
OnGUI(): Displays the button for initiating the cleanup process.
CleanUpUnassignedTerrainData(): Finds all instances of TerraForgeTerrainPainterModifier
, checks if they have unassigned or empty terrainData
, and deletes those assets. Updates the asset database and shows a completion dialog with the count of deleted assets.
Asset Deletion: The script deletes assets directly from the project, so ensure you have backups or are confident about the cleanup before proceeding.
Completion Confirmation: A dialog box will inform you of the number of assets deleted and confirm the completion of the cleanup process.