Version: 2023.1
public void OnSceneGUI (Terrain terrain, TerrainTools.IOnSceneGUI editContext);

参数

terrain 激活的地形对象。
editContext Interface for communication between Editor and Paint tools.

描述

自定义地形工具 OnSceneGUI 回调。

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

See Also: Editor.OnSceneGUI, SceneView, TerrainPaintTool_1.OnRenderBrushPreview.