Skip to content

Instantly share code, notes, and snippets.

@silenciocorner
Created April 8, 2021 13:23
Show Gist options
  • Select an option

  • Save silenciocorner/457b34464c0bdd48d32e4612f751783d to your computer and use it in GitHub Desktop.

Select an option

Save silenciocorner/457b34464c0bdd48d32e4612f751783d to your computer and use it in GitHub Desktop.
BeatmapDatatypes add from MusicManager.cs script from Colin Vandervort article "FMOD Unity: Beat-Mapping"
public class MusicManager : MonoBehaviour
{
...
public TimelineInfo timelineInfo = null;
private GCHandle timelineHandle;
private FMOD.Studio.EVENT_CALLBACK beatCallback;
private FMOD.Studio.EventDescription descriptionCallback;
public FMOD.Studio.EventInstance musicPlayEvent;
private void Awake()
{
me = this;
musicPlayEvent = RuntimeManager.CreateInstance(music);
musicPlayEvent.start();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment