Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


OnPaint(Terrain, IOnPaint)

Custom Terrain Tool paint callback.
Read time 1 minuteLast updated 17 days ago

Definition

public virtual bool OnPaint(Terrain terrain, IOnPaint editContext)

Parameters

terrain

Active Terrain object.

editContext

Interface used to communicate between Editor and Paint tools.

Returns

Type

Description

boolReturn true to temporarily hide tree, grass, and detail layers on the terrain.