Documentation

Unity Engine

Download Unity

Unity Engine

OnSceneGUI(Terrain, IOnSceneGUI)

Custom terrain tool OnSceneGUI callback.
Read time 1 minuteLast updated 2 months ago

Definition

public virtual void OnSceneGUI(Terrain terrain, IOnSceneGUI editContext)

Parameters

terrain

Active Terrain object.

editContext

Interface for communication between Editor and Paint tools.

Remarks

Unity calls this method to run tool-specific scene UI and behavior.