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.

0 votes

Hi,

I'm having real trouble using Wwise types in the Unity integration.

I have a script on a UI prefab that essentially contains this:

public class myClass : MonoBehaviour {

 

    public AK.Wwise.Event myEvent = null;

[...]

    public void someFunction()

    {

            Debug.Log("Play event: " + myEvent.ToString());

            myEvent.Post(gameObject);

    }

With this, the editor fields show up fine, and I am able to select the event which I would like to play from someFunction().

However, when I run it no event is posted. The output log just says "Play event: AK.Wwise.Event" from the debug command. And if I set a breakpoint to myEvent.Post(gameObject), then the value of myEvent is just set to {AK.Wwise.Event}

Am I doing something wrong in setting the events up?

 

 

Here is an image of the actual code and editor, for reference (names are less simplified than above):

in General Discussion by Jonathan P. (500 points)

Please sign-in or register to answer this question.

...