第 4 课

目录

Posting Events using Wwise-Types

Let's start small and post an Event using Wwise-Types. Wwise-Types are a collection of classes corresponding to the types of core objects in Wwise, like an Event, a SoundBank, a Switch and so on. Once you make a Wwise-Type class property in a script, it will be exposed in the Inspector window as a Wwise-Type property drawer.

As such, the Wwise-Type classes allow you to very easily expose any Event, SoundBank, Switch, or other Wwise object in the Inspector with a single property in a script. In this lesson, you will be asked to:

  1. Create a Wwise-Type Event class property.

  2. Assign the variable to the 'Destruction_Rocks' Event.

  3. Validate that the script is working properly, by posting the Event when the game starts.

[Note]

To edit scripts, you can use the code editor of your choice; however, we will be referring to Visual Studio throughout this certification.