private void OnSceneGUI(
SceneView sceneView)
{
if (path == null)
return;
DrawCurve();
if (editPoints)
{
EditPoints();
DrawSceneButtons();
}
}
OnSceneGUI
The OnSceneGUI method in my code allows me to see all visual functions in my sceneView.
- For example it allows me to see the + and - buttons in my scene, or the path points in my scene.