SpectrumRenderer SpawnSpectrumRenderer(DSPNode spectrumNode) { GameObject go = Instantiate(SpectrumRendererPrefab); SpectrumRenderer spectrum = go.GetComponent <SpectrumRenderer>(); spectrum.Init(_Graph, spectrumNode); return(spectrum); }
public override void Init() { base.Init(); if (DSPReady) { GameObject go = Instantiate(_DSPWidgetGraph.GraphContainer.SpectrumRendererPrefab); SpectrumRenderer = go.GetComponent <SpectrumRenderer>(); SpectrumRenderer.Init(DSPGraph, DSPNode); } }