Hello! I want to make a game to learn Japanese, the words are dynamically generated from an array type variable. I have all the audio files of the words, but I don’t see the option of how to dynamically load one audio or another according to the word I have loaded from the database.
Can’t I drag all the .acc files to /assets and somehow load dynamically? It would not make sense that to do so I had to create 1000 “Listen to audio” buttons, each with its own audio.
No, definitely not. Assets have to be in your actual game resources (files stored in your project folder will be ignored upon export, unless they’re in your game resources).
The closest thing I could think of would be you adding all of your audio files to your project resources, and then dynamically selecting the file name using the Audio by Filename extension in the main extension list. You can use a string to build the filename.
The file will still need to be manually added to your project resources beforehand, though.
If this works, its fine to me. I have no problem adding all the audios to the resources, if then I can invoke them through a variable with that extension. Thank you very much!