Version: 2023.2
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.

Additional resources: Editor.OnSceneGUI, SceneView, TerrainPaintTool_1.OnRenderBrushPreview.