コード例 #1
0
    SpectrumRenderer SpawnSpectrumRenderer(DSPNode spectrumNode)
    {
        GameObject       go       = Instantiate(SpectrumRendererPrefab);
        SpectrumRenderer spectrum = go.GetComponent <SpectrumRenderer>();

        spectrum.Init(_Graph, spectrumNode);
        return(spectrum);
    }
コード例 #2
0
    public override void Init()
    {
        base.Init();

        if (DSPReady)
        {
            GameObject go = Instantiate(_DSPWidgetGraph.GraphContainer.SpectrumRendererPrefab);
            SpectrumRenderer = go.GetComponent <SpectrumRenderer>();
            SpectrumRenderer.Init(DSPGraph, DSPNode);
        }
    }