How to tell in code once an event has transitioned to another section

I have an event that plays a song with multiple sections. I have a parameter I can change which moves between sections. The transition regions are quantized to 2 bars so if I change the parameter in code, it won’t immediately transition. How can I detect the moment it transitions to the next section as I need to sync up visuals to the soundtrack.

The best way to do this would be to use Event Callbacks to receive a callback when the event has reached the timeline marker of the section you’re transitioning to. You can then compare against the name of timeline marker to determine what to do ingame.

I would recommend taking a look at the Timeline Callbacks example in our Unity docs, which shows how to use event callbacks to receive callbacks for timeline beats/bars as well as timeline markers.