OnRenderBrushPreview(Terrain, IOnSceneGUI)
Use this method to implement custom tool preview and UI behavior that will only render while the mouse is within the SceneView bounds or while you're actively using this tool.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor.TerrainTools
- Assembly: UnityEditor
public virtual void OnRenderBrushPreview(Terrain terrain, IOnSceneGUI editContext)
Parameters
Active Terrain object.
Interface for communication between Editor and Paint tools.
Remarks
Unity calls this method when the mouse is within the SceneView viewport bounds, and the hotControl is set to 0 or to the Terrain control ID provided by the IOnSceneGUI context instance. This is usually when no other tools are active, or when you're actively using this tool.
Additional Resources: Editor.OnSceneGUI(), SceneView, TerrainPaintTool<T>.OnSceneGUI, hotControl, GUIUtility.hotControl.