Is there a way to play an audio by file name (blueprint)

I saw a similar post about how to play audio using its name or path but in C++, I’m not really familiar with Unreal C++, so I wanted to know if there’s a blueprint alternative for it. Thanks in advance

Not by name, specifically, but you get to choose which one

image

You could make yourself a little system, where you only have to specify names, but what is the advantage of that? What are you trying to do?

I am importing a story using a plugin, and it uses texts as cues. For example if i wrote [slam_SFX], I want the blueprint read that text then get an audio with that name and play it

If you really want to do it that way, you’ll need to write something to search the content browser for the file.

I’m afraid I can’t tell you the whole thing, as I don’t have time to troubleshoot it, but it’s along these lines

This is a chunk of code I wrote to find all static meshes under a certain folder.

You’ll need to cast to a sound wave.

I can’t find any vids about it right now…

1 Like

It’s alright! This is already a big help, thank you so much! I’ll try it out with my audio files!

1 Like