Play music with Intros and Outros on Unity.
Import unitypackage.
- 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.
- Call
Play
method on Music (or you can enablePlay On Awake
for 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.
MIT