void OnRender(Camera camera) { if (EditorApplication.isPlaying && m_SynthesizerProvider != null && !m_ExitingPlayMode) { var graphNodeView = rootVisualElement.Q <GraphNodeView>("graphNodeView"); var synthesizer = m_SynthesizerProvider.Synthesizer; DebugDraw.Begin(camera); DebugDraw.SetDepthRendering(false); foreach (var selectable in graphNodeView.selection) { var graphNode = selectable as GraphNode; if (graphNode != null) { graphNode.OnSelected(ref synthesizer.Ref); } } DebugDraw.End(); } }
void OnSceneGUI(SceneView sceneView) { DebugDraw.Begin(sceneView.camera); DebugDraw.SetDepthRendering(false); DisplayTrajectory(); DebugDraw.End(); }