Version

menu_open
Wwise Unity Integration Documentation
Using AkEvent from the Inspector
Note: AkAmbient builds on AkEvent by allowing multipositioning.
  • Trigger On: Provides a list of Unity events that can set this Wwise Event. You can choose more than one Unity event, in which case the field will display as "Mixed…". You are not limited to those events. You can set an Event at any time by calling AkSoundEngine.PostEvent anywhere in your code. You can also code your own triggers, so they appear in the list for your co-workers. See Adding New Triggers for Wwise Events.
    • Action On Event: Enables users to override some Event parameters defined in Wwise directly from Unity. This allows the reuse of existing Events insted of creating new ones.
      Unchecked means you will post the Event. If you enable Action On Event, then you cannot enable Use Callback. See also the SDK documentation's entry for AK::SoundEngine::ExecuteActionOnEvent.
      • Action On Event Type: Overrides the Action type of the Event.
      • Curve Interpolation: Overrides the interpolation curve.
      • Fade Time: Overrides the sound's fade time.
    • Use Callback: Provides an easy way to make a game object react to an event callback. If you enable Action On Event, then you cannot enable Use Callback.
      • Game Object: The game object that will receive the callback. To select a game object, drag it from the hierarchy and drop it in the game object field.
      • Callback Function: This is the function that will get called by Game Object when the callback happens. To select a function, type its name in the Callback Function text field. For this to work, Game Object must define Callback Function in one of its components. The function must only receive one AkEventCallbackMsg argument.
      • Callback Flags: Select a flag which specifies when Callback Function will be called. More than one flag can be selected at the same time. See the AkCallbackType enumeration in the Wwise SDK documentation for more information about each flag.
      • Add: Creates a new callback.
  • Play / Stop: Can be used to preview the Wwise Event when in Edit mode.
  • Stop All: Stops all currently playing Wwise Events.
  • Name: Click to select the Event from those already defined in WwiseProject > States in the Wwise Picker. To add a new Event, you can click the Create new 'Event' button within the Wwise Project Explorer's Events tab.
See also

Was this page helpful?

Need Support?

Questions? Problems? Need more info? Contact us, and we can help!

Visit our Support page

Tell us about your project. We're here to help.

Register your project and we'll help you get started with no strings attached!

Get started with Wwise