Play music with Intros and Outros on Unity.
- Create an AudioSource object on your scene.
- Set AudioClip on the object.
- Add Music component to the object.
- Define sections which the AudioClip will be separated into.
Playmethod on Music (or you can enable
Play On Awakefor the AudioSource)
- Through: Move to the next section at the end of the current section.
- Loop: Move to the beginning of the current section at the end.
- End: Stop playing at the end.