Community Q&A

Where Wwise users help each other out!

Audiokinetic's Community Q&A is the forum where Wwise users ask and answer questions within the Wwise community. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

Unity 2020.2.1f1 Ak Event : Trigger Enter not working

0 votes
Hello everyone! I am doing some testing on the Unity 3D Game Kit project from Unity Market Place using Unity 2020.2.1f1 (along with Wwise 2019.8.7432) and for some reason i CAN'T make a basic Ak Event "Trigger on: Start" works. Been doing it in several projects for the last 2 years but doesnt seem to work on this version! As always i checked the Rigidbody on my Player Game Object (Ellen), created a trigger box (Is Trigger) added the Ak Trigger Enter/Trigger Exit component targeting the Player Game Object...All the steps we are suppose to follow to trigger something on a trigger but not working :/.

Its really basic but still can't find a way to work around and it's blocking a lot of features i want to try with Ak Environment/Switches/States etc....

Do someone as something in mind that i might have missed ?

Thanks
asked 2 days ago in General Discussion by Angel I. (100 points)

2 Answers

0 votes
Hey Angel,

That's strange. Have you tried creating a custom script and test if Start() is called?

All of those Trigger On options in the AkEvent / AkAmbient is merely using the MonoBehaviour functions, like OnTriggerEnter() or Start(). So if those functions are working in a custom script, it should work for the integration as well. And Start() should definitely be called, as long as the game object you attach it to is enabled.

As for the Trigger Enter conditions, the same applies as above. AkTriggerEnter is simply using the OnTriggerEnter() function, so if you've got a Rigidbody + Trigger on it, it should work. I would definitely try to test this out in a custom script on the same game object.

Let us know if the functions in a custom script works.
answered 2 days ago by Mads Maretty S. (Audiokinetic) (9,130 points)
0 votes

Hey Angel,

Alternatively, 

you may want to try changing the order of script execution 

by referring to the following documentation 

to ensure that AK-related scripts have a higher priority 

in the execution order list

Unity - Manual: Script Execution Order settings (unity3d.com)

answered 2 days ago by Hou Chenzhong (Audiokinetic) (3,820 points)
...