CodeBlockEvents.OnAudioCompleted not working.
Is anyone else having issues with CodeBlockEvents.OnAudiocompleted not firing? Even if you don't have a solution please let me know if it's just not working for you. It's not even working on scripts that used to work. I'm not sure why. I know I've been doing it right. The following is an example of a script that I attached directly to the audio gizmo. The song plays on world start but does not do the console.log().
import { Component, AudioGizmo, CodeBlockEvents } from 'horizon/core'
class practiceTrack extends Component<typeof practiceTrack> {
static propsDefinition = {};
start() {
this.connectCodeBlockEvent(
this.entity.as(AudioGizmo),
CodeBlockEvents.OnAudioCompleted,
( ) => { console.log('Audio completed') }
);
this.entity.as(AudioGizmo).play()
}
}
Component.register(practiceTrack);