public virtual IEnumerable <IPluginHandler> GetGraphProcessingPluginHandlers(GraphProcessingOptions getGraphProcessingOptions) { if (getGraphProcessingOptions.HasFlag(GraphProcessingOptions.Tracing)) { if (m_DebugInstrumentationHandler == null) { m_DebugInstrumentationHandler = new DebugInstrumentationHandler(); } yield return(m_DebugInstrumentationHandler); } }
static GraphProcessingOptions GetGraphProcessingOptions(bool tracingEnabled) { GraphProcessingOptions graphProcessingOptions = EditorApplication.isPlaying ? GraphProcessingOptions.LiveEditing : GraphProcessingOptions.Default; if (tracingEnabled) { graphProcessingOptions |= GraphProcessingOptions.Tracing; } return(graphProcessingOptions); }