기술 자료

Unity Engine

Unity Engine

OnPaint(Terrain, IOnPaint)

Custom Terrain Tool paint callback.
읽는 시간 1분최근 업데이트: 한 달 전

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.