We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
Thanks for your work :)
I'm making this issue for the sake of improving the project, since I'll be using something else.
I managed to make your examples works in Godot 4.3.
The issues:
After that, I tried to create a playlist, added some tracks, but there was an error.
var my_track = current_playlist.tracks[0] current_song = current_playlist.tracks[0] print(current_playlist.tracks.size()) if is_crossfading: _change_with_crossfade(current_song) else: stop_music.emit() music_player.stream = current_song.track music_player.volume_db = 0.0 music_player.play()
I edited the code to debug it.
The editor thinks that current_song is nill, even though my_track is not nil and there are tracks.
The exact error is "Invalid access to property or key 'track' on a base object of type 'Nil'.".
We usually have this error, in this way, when the type of the variable is wrong, but I definitevely have a MusicTrack here.
I'm emitting the event this way:
music_manager.play_playlist.emit( main_loop_playlist, true, false, false, 1 )
And the playlist is a property of my class, @export var main_loop_playlist: MusicPlaylist
I also tried to restart Godot.
Thank you in advance,
The text was updated successfully, but these errors were encountered:
The issue is in _on_stop_music() - in the end there is
current_song = null
And in that else statement there is stop_music.emit()
Sorry, something went wrong.
No branches or pull requests
Hello,
Thanks for your work :)
I'm making this issue for the sake of improving the project, since I'll be using something else.
I managed to make your examples works in Godot 4.3.
The issues:
After that, I tried to create a playlist, added some tracks, but there was an error.
I edited the code to debug it.
The editor thinks that current_song is nill, even though my_track is not nil and there are tracks.
The exact error is "Invalid access to property or key 'track' on a base object of type 'Nil'.".
We usually have this error, in this way, when the type of the variable is wrong, but I definitevely have a MusicTrack here.
I'm emitting the event this way:
And the playlist is a property of my class, @export var main_loop_playlist: MusicPlaylist
I also tried to restart Godot.
Thank you in advance,
The text was updated successfully, but these errors were encountered: