![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Animaliss |
Let’s say we have an AudioStream…
It is clear that we can drag the track there with the mouse, but how to select a file for playback through the script? More precisely, I want to connect an array of tracks to the game so that they are randomly selected…
I suspect that you need to somehow get to the Stream/Resourse/Path/“res://…” field and add a new music file there, but how do you do that?
Please write a code example of how it should work.