Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

+1 vote

[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);
        }
    }
}
in General Discussion by Taylor C. (150 points)

1 Answer

+2 votes
 
Best answer
Hi Taylor,

Where is the script located? In Wwise 2021.1 it needs to be located in the Wwise > MonoBehaviour > Runtime folder.
by Mads Maretty S. (Audiokinetic) (40.2k points)
selected 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.
This really isn't an ideal solution. Having to add custom code to the wwise folder is kind of sketchy, especially when upgrading means replacing the entire folder.
...