How to change stream in StreamPlayer thru code?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sprowk

I am trying to have autoload scene that handles changes in music from any other scene.

Note: I am using 2.1.4

:bust_in_silhouette: Reply From: Flo

Make a scene and make a Node with all your music in it. Write this script in the Node:

func _ready():
	var Manage = load("res:// your scene .tscn").instance()
	get_node("/root/ your Node ").add_child(Manage)