Skip to content

Instantly share code, notes, and snippets.

View nndwn's full-sized avatar
🍀

nandawan libya nndwn

🍀
View GitHub Profile
@SvDvorak
SvDvorak / WaveGenerator.cs
Last active July 8, 2023 02:09
Unity sound wave using line renderers
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// Creates a wave form based on an audiosource
/// Modified version of http://forum.unity3d.com/threads/making-sense-of-spectrum-data.90262
/// Make sure to plug in the _topLine and _bottomLine line renderers
public class WaveGenerator : MonoBehaviour
{