Dev Mode

Dev Mode Options

The DevModeManager script is attached to the DevModeManager GameObject. It allows the user to set various dev mode flags.

When Show Terrain Hit Pos is checked the terrain mesh triangle hit by the mouse when raising or lowering the terrain will be highlighted in red.

Hit Pos Display Length is the number of seconds to display the hit position triangle.

Dev Mode Settings

Dev Mode Settings

When Show Hit Cube is checked the terrain cube that will be raised or lowered will be highlighted in blue.

Hit Cube Display Length is the number of seconds to display the Hit Cube. 

Note that Gizmos need to be enabled to see the hit triangle and hit cube in Game View, otherwise they will only be displayed in Scene View. The Gizmos button is found at the top-right of the game view window.

The No Threading option disables the CPU Threading when creating the chunks. If unexpected behaviour occurs when making changes to the area of the code that creates and displays the chunks, check this to disable threading to see if that is the cause of the issue. If this is the case, be sure to either make new code thread-safe, or move it outside of the threaded code.

The Display FPS option Displays the FPS in game mode. This can also be toggled when the game is running using the F1 key.
 
The Display Chunk Info option displays various data for the chunk that the player is currently standing on. This can also be toggled when the game is running using the F2 key.

Hiding the various scenery objects is a quick way to temporarily remove them for testing purposes without having to make any modifications to the biomes' ScriptableObjects.

© Copyright 2023 MC Terrain. All Rights Reserved.