CC 3.5 Audio clip can't add callback

I want to random new background music after music ended, in CC 3.5 can’t do this but in example taxi game V 3.0.0 can add audio clip callback once.(‘ended’) and it work fine, do you have any way to do in V3.5

I set callback in node of audioSource like this.

this.sound_bg.node.on(AudioSource.EventType.ENDED,() => {
//call back
})

this.sound_bg is AudioSource component

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.