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.

Custom Triggers inheriting AkTriggerBase do not show up in the AkAmbient trigger dropdown list

0 votes

[Unity 2020.3.1f1] [Wwise 2021.1.1]

According to Wwise documentation (https://www.audiokinetic.com/library/edge/?source=Unity&id=unity_add_triggers.html) you can inherit from AkTriggerBase, and the subclass should appear in the "Trigger On" dropdown list in an AkEvent or AkAmbient.  However I'm not seeing my AkTriggerBase-derived class appear in the dropdown list.  

 

Here is my simple AkTriggerBase-derived class as an example:

public class TestAkTrigger : AkTriggerBase
{
    void Hit()
    {
        if (triggerDelegate != null) 
        {
            triggerDelegate(null);
        }
    }
}
asked Apr 29 in General Discussion by Taylor C. (140 points)

1 Answer

+1 vote
 
Best answer
Hi Taylor,

Where is the script located? In Wwise 2021.1 it needs to be located in the Wwise > MonoBehaviour > Runtime folder.
answered Apr 30 by Mads Maretty S. (Audiokinetic) (12,300 points)
selected May 4 by Taylor C.
This did the trick, thanks! I think that detail would be useful to include in the documentation that I linked in the question.
...