UnityEditor.TerrainModule Provides an interface to display a custom TerrainLayer UI in the Terrain Layers inspector. Draws the custom GUI for the terrain layer. The TerrainLayer object. The Terrain object on which the TerrainLayer object, specified by the terrainLayer parameter, is selected. Return false to have Unity draw the default TerrainLayer inspector. Otherwise draw the custom GUI and return true. Options for determining the render mode of the mesh detail. Uses the grass shader for rendering details Uses the vertex lit shader for rendering details Provides methods for displaying the detail mesh wizard. Unity calls this method automatically when the detail mesh wizard is enabled. Initializes the mesh detail wizard's defaults. The Terrain object. The detail's index. Provides methods for displaying the detail texture wizard. Unity calls this method automatically when the detail mesh wizard is enabled. Initializes the texture detail wizard's defaults. The Terrain object. The detail's index. The default Inspector class for Terrain Layer. Applies the custom UI for the Terrain Layer object. The custom UI object. The Terrain object. Returns true if the Terrain Layer has a preview GUI. Draws the default Terrain Layer Inspector GUI. Draws the default Terrain Layer preview GUI. Draws the default Terrain Layer static preview. A set of helper functions for using terrain layers. Checks whether the texture is correctly imported as a normal map texture. The texture to check. True if texture is correctly imported, otherwise false. This helper function shows the Terrain Layer Inspector GUI nested inside the current Inspector GUI. The Terrain from which the Terrain Layer originates. The Terrain Layer object to show the Inspector for. Reference to a variable of type Editor in which Unity caches the Terrain Layer Inspector object. The custom Terrain Layer GUI object. Helper function to show the layer selection window for selecting terrain layers in inspector. Terrain tile. Currently selected terrain layer index. Newly selected terrain layer index. Displays the tiling settings UI. The terrain layer that contains the tiling settings to display. The tile size property to display. The tile offset property to display. Displays the tiling settings UI. The terrain layer that contains the tiling settings to display. The tile size property to display. The tile offset property to display. Checks whether the texture is a valid TerrainLayer diffuse texture. If it detects that the texture is not valid, it displays a warning message that identifies the issue. The texture to validate. Checks whether the texture is a valid TerrainLayer mask map texture. If it detects that the texture is not valid, it displays a warning message that identifies the issue. The texture to validate. Checks whether the texture is a valid TerrainLayer normal map texture. If it detects that the texture is not valid, it displays a warning message that identifies the issue. The texture to validate. The return value from the CheckNormalMapTextureType method indicating whether the texture is imported as a normal map. Contains functions that help display Terrain Tools overlays. The current active terrain tool, if the terrain tool inherits from TerrainEditorPaintToolBase. Checks whether the current selected object is a Terrain object. Returns true if the current selected object is of type Terrain. Flags that specify which brush controls the [IOnInspectorGUI.ShowBrushesGUI] method displays. Display all brush controls. Display the brush inspector for the currently selected brush. Don't display any brush controls. Display the brush opacity control. Display the brush selection control. Display the brush selection control, and the brush inspector for the currently selected brush. Display the brush size control. Represents a container for brush bound data. The bounds of the brush. The maximum bounds of the brush. The minimum bound of the brush. Gets the brush offset within the brush bounds. The x position within brush bounds. The y position within brush bounds. Returns the brush offset. Represents data associated with the brush used for scattering details. Gets the strength at the passed in position. The x position of the brush offset. The y position of the brush offset. Returns the strength at the passed in position. Gets the strength at the passed in position. The position of the brush offset. Returns the strength at the passed in position. Updates the DetailBrushRepresentation's data. The brush mask. The size of the brush. When the value is true, Unity forces the DetailBrushRepresentation to always update. Otherwise, Unity updates the DetailBrushRepresentation only when the brush mask's texture or size changes. The index at which you should place the foliage tools in the Terrain Tools overlay. The index at which you should place the Paint Details foliage tool in the Terrain Tools overlay. The index at which you should place the Paint Trees foliage tool in the Terrain Tools overlay. Interface that provides parameters and utility functions for the OnInspectorGUI event in the terrain paint tools. Instructs the Editor to repaint the tool UI and/or the scene view. What to repaint. Displays the default controls for the brush in the tool inspector. Pixel spacing for the brush GUI controls. Specifies which brush controls to display in the Terrain tool UI. The resolution per Terrain tile of the Texture, which the tool is editing. Unity uses this value to calculate Brush size limits. Interface that provides parameters and utility functions for the OnPaint event of the terrain paint tools. Read only. Current brush size in Terrain units (equivalent size to world units). Read only. Current brush strength. Read only. Current selected brush texture. Read only. True if the mouse is over a valid Terrain object; otherwise false. Read only. The raycast result for the current mouse position. This is valid when hitValidTerrain is true. Read only. The normalized position (between 0 and 1) on the active Terrain. Instructs the Editor to repaint the tool UI, the Scene view, or both. Specifies what to repaint. Instructs the Editor to repaint the inspector UI. Interface that provides parameters and utility functions for the OnSceneGUI event of the terrain paint tools. Read only. Current brush size in terrain units (equivalent size to world units). Read only. Current brush strength. Read only. Current selected brush texture. The control ID for the current Terrain Inspector. (Read Only) Read only. True if the mouse is over a valid Terrain object; otherwise false. Read only. The raycast result for the current mouse position. This is valid when hitValidTerrain is true. Read only. SceneView object. Instructs the Editor to repaint the tool UI, the Scene view, or both. Specifies what to repaint. The index at which you should place the material tools in the Terrain Tools overlay. The index at which you should place the Paint Texture material tool in the Terrain Tools overlay. The index at which you should place the neighbor terrain tools in the Terrain Tools overlay. The index at which you should place the Create Terrain neighbor terrain tool in the Terrain Tools overlay. The context for drawing IMGUI elements pertaining to terrain tools brushes. The constructor for creating OnInspectorGUIContext to make IMGUI calls for drawing brush GUI. Repaint the IMGUI elements in the inspector. Calls on IMGUI code to create the inspector for showing terrain brushes. This takes in flags that allow the user to select which brush attributes to display, such as opacity, size, or all. Indicate how much spacing to use in the GUILayout. Indicates which brush attributes to display. The height map resolution of the terrain. Provides utility methods for painting details. Gets data on the clamped detail patches for displaying their GUI within a terrain. The target terrain. The minimum and maximum height of the details within the terrain. The list of screen detail pactch icons within the screen positions. Returns the index of the terrain patch within the screen position, returns an invalid index of -1. Copies a detail prototype between two terrains. The target terrain. The source terrain. The index of the source detail. Returns the index of the copied detail prototype. Displays the clamped detail patches. The index of the patch that the mouse is hovering over. The list of screen detail patch icons within the screen positions. The minimum and maximum height of the details within the terrain. The target terrain. The edit context object. Gets the index position of similar details between two terrains. The target terrain. The source terrain. The index of the source detail. Returns the index position of the similar detail. Otherwise, returns an invalid index of -1. Gets the max amount of detail instances per patch allowed on a terrain. The terrain data object. Returns the max number of detail instances. Gets the icons of the detail prototypes. The terrain data object. Returns the detail icons. Resets the paint detail tools utility parameters. Represents a context object for information used when scattering trees and detail objects across terrains. Neighboring terrain objects. Neighboring terrain UVs. Initializes and returns a scattering context object. The Terrain object. The current UV position on the terrain. Returns an object representing the scattering context information. Flags that indicate what to repaint on the Terrain tools. Repaint the Scene view. Repaint the tool UI. The index at which you should place the sculpt tools in the Terrain Tools overlay. The index at which you should place the Holes sculpt tool in the Terrain Tools overlay. The index at which you should place the Paint Height sculpt tool in the Terrain Tools overlay. The index at which you should place the Set Height sculpt tool in the Terrain Tools overlay. The index at which you should place the Smooth sculpt tool in the Terrain Tools overlay. The index at which you should place the Stamp sculpt tool in the Terrain Tools overlay. Enum to specify whether DrawBrushPreview previews the source render texture or the destination render texture of a PaintContext. Specifies that TerrainTools.TerrainPaintUtilityEditor.DrawBrushPreview uses the destination render texture of the PaintContext. Specifies that TerrainTools.TerrainPaintUtilityEditor.DrawBrushPreview uses the source render texture of the PaintContext. A category with which to define tools that inherit from the ITerrainPaintToolWithOverlays interface. The CustomBrushes Terrain Tools category. The Foliage Terrain Tools category. The Materials Terrain Tools category. The NeighborTerrains Terrain Tools category. The Sculpt Terrain Tools category. Utility class for Terrain Inspector GUI. Checks whether a Material is compatible with Terrain. The Material to validate. Base class for terrain painting tools. Retrieves the description of the custom terrain tool. Tool description. Retrieves the name of the custom terrain tool. Tool name. Called when the tool is destroyed. Called when the tool is created. Called when the tool is activated. Called when the tool becomes inactive. Custom terrain tool OnInspectorGUI callback. Active Terrain object. Interface used to communicate between Editor and Paint tools. Custom terrain tool paint callback. Active Terrain object. Interface used to communicate between Editor and Paint tools. Return true to temporarily hide tree, grass, and detail layers on the terrain. Use this method to implement custom tool preview and UI behavior that will only render while the mouse is within the SceneView bounds or while you're actively using this tool. Active Terrain object. Interface for communication between Editor and Paint tools. Custom terrain tool OnSceneGUI callback. Active Terrain object. Interface for communication between Editor and Paint tools. Base class for Terrain painting tools, which inherit from Editor Tools. The abstract class that TerrainPaintToolWithOverlays inherits from. The TerrainCategory that the Terrain Tool belongs to. Description of the Terrain Tool. Terrain Tool description. Name of the Terrain Tool. Terrain Tool name. True if the Terrain Tool has brush attributes, false otherwise. True if Terrain Tool has brush masks, false otherwise. True if Terrain Tool has custom settings, false otherwise. The index at which you should place the Terrain Tool in the Terrain Tools overlay. The icon displayed in the Terrain Tools overlay when the Terrain Tool isn't selected. This function is called when the tool is activated. Called when the tool is destroyed. Called when the tool is created. This function is called when the Terrain Tool is activated. This function is called when the Terrain Tool becomes inactive. The icon displayed in the Terrain Tools overlay when the terrain tool is selected. Custom Terrain Tool OnInspectorGUI callback. Active Terrain object. Interface used to communicate between Editor and Paint tools. TODO. Custom Terrain Tool paint callback. Active Terrain object. Interface used to communicate between Editor and Paint tools. Return true to temporarily hide tree, grass, and detail layers on the terrain. Use this method to implement custom tool preview and UI behavior that only renders while the mouse is within the SceneView bounds or while you're actively using this tool. Active Terrain object. Interface used to communicate between Editor and Paint tools. Custom Terrain Tool OnSceneGUI callback. Active Terrain object.Active Terrain object. Interface used to communicate between Editor and Paint tools. This method is used to implement the custom terrain editor paint tool. The window that is displaying the custom editor tool. Contains the IMGUI code for custom settings beyond the common settings. Active Terrain object. Interface used to communicate between Editor and Paint tools. TODO. Invoked before the terrain paint tool with overlays stops being the active tool. The last hit terrain or the last active instance of a terrain object. Terrain paint utility editor helper functions. Draws a Terrain brush preview mesh from a heightmap PaintContext using the provided procedural material. PaintContext describing the heightmap from which to build the preview mesh. Specifies Whether to build the mesh using the source or destination render texture in heightmapPC. The brush texture to preview. Describes the position and orientation of the brush. Material used to render the preview. Material pass to render. Returns the default brush preview material. This material supports procedural mesh generation for use with DrawBrushPreview. Default brush preview material. Helper function to display a default preview brush with no rotation or custom materials. Terrain object. Brush texture. Brush size. Updates the undo stack with a terrain operation. Terrain data object. The name of the undo operation. The shortcut context that is active while editing Terrain. Changes the selected Terrain paint tool. Changes the selected Terrain paint tool if that paint tool is a TerrainPaintToolWithOverlays. Provides methods for displaying the terrain wizard. Displays the terrain wizard. The wizard's content title. The name of the wizard's create button. Returns a Scriptable Wizard of the passed in type. Initializes the terrain wizard defaults. The Terrain object.