GetSpectrumData 사운드에 맞춰 게임오브젝트의 형태 변환
using UnityEngine; using System.Collections; public class soundMag : MonoBehaviour { AudioSource audio; float [] spectrum = new float [64]; public GameObject cube; void Start () { audio = GetComponent< AudioSource >(); } void Update () { MusicVisualization(); } void MusicVisualization() { audio.GetSpectrumData(spectrum, 0, FFTWindow .BlackmanHarris); cube.transform.localScale = new Vector3 (1,...