Unity: Sync Objects With Music

So you want to build a rhythm game. A game that has elements moving in sync with the beat of your music. I participated in the rhythm game ‘A Jesters Tale‘ at the Nementic game jam. And it turned out it’s not as easy to sync objects with music as it seems at first glance. Everything tends to go out of beat with time if you don’t code it correctly.


I found two great articles and a Reddit thread about building a rhythm game. I think the articles are all you need to build one yourself. I wound repeat the content here but provide you with links to the sources.


Reddit thread: How to Make a Rhythm Game
Article: Coding to the Beat – Under the Hood of a Rhythm Game in Unity
Article: Music Syncing in Rhythm Games