Example #1
0
    private void Update()
    {
        float freqOrBandBuffer = AudioPeer.GetFreqOrBandBuffer(useBufferFreq, band);
        Color color            = new Color(freqOrBandBuffer, freqOrBandBuffer, freqOrBandBuffer);

        _material.SetColor("_EmissionColor", color);

        transform.localScale = new Vector3(transform.localScale.x, (freqOrBandBuffer * scaleMultiplier) + startScale, transform.localScale.z);
    }