Hi guys.
I am trying to play some sound in a Unity project using Wwise as a middleware. I have a problem listening to a sound on a moving object. If someone could share a bit of knowledge I'd be very happy! :D
Wwise project information:
sfx_moving -> The audio sfx which is set to loop. Under the Positioning tab I have the following settings.
https://i.postimg.cc/DyX05BMK/positioning.jpg
movingtileTrigger -> The event with the sound
Unity project:
The scripts
https://i.postimg.cc/52WBmHpn/unity.jpg
I have also implented the following code in the object within void Start ():
gameObject.AddComponent<AkSpatialAudioEmitter>();
AkSoundEngine.PostEvent("movingtileTrigger", gameObject);
Thanks a lot in advance!