Game Animation Sample. Question about different sound for different materials

Hello, I was trying to change the sound based on physical material and I found that inside the “/All/Game/Blueprints/AnimNotifies” there’s a file called “BP_AnimNotify_FoleyEvent” who has a function called “Received_Notify” this function receive the Left and Right Notify, so you could create a line trace by channel using the mesh component-get world location and play sound at location of the current notify.


Sorry if my explanation is not clear.
I created a custon function called “PlaySoundBasedOnPM” and used a similar logic used in this video to play different sounds.

Maybe it’s a better idea to implement the sound foley audio bank but I can’t find any information or documentation for that.