Version
Wwise Unity Integration Documentation
|
Timeline is Unity's cinematic editing tool. It can be used to create gameplay sequences, audio sequences, and other cinematic content.
For more information on Timeline refer to Unity's Timeline documentation.
For instructions on how to create a Timeline Asset and Timeline instance, refer to Timeline Usage.
Note: | As of Unity 2019.3, Timeline is now shipped through the Unity Package Manager. Should you wish to uninstall the Timeline package, please ensure to add the AK_DISABLE_TIMELINE Scripting Define Symbol to all of your platform's Player Settings. |
The Wwise Unity Integration adds two new Timeline tracks, the AkTimelineEventTrack and the AkTimelineRtpcTrack, and two deprecated Timeline tracks, the AkEventTrack and the AkRTPCTrack.
The AkTimelineEventTrack is used to post Wwise Events, and the AkTimelineRtpcTrack is used to set Game Parameter values. Both types of tracks can be added to a Timeline using the "Add" dropdown button or by right-clicking on the track header section of the Timeline window.
Note: | The AkEventTrack and AkRTPCTrack tracks and their associated playables are only included to provide backward compatibility and should no longer be used. |
AkTimelineEventTracks and AkTimelineRtpcTracks have object bindings which can be set to any Game Object. The track binding, when explicitly set, specifies the target Game Object. If the track binding is not set (set to None), the track will target the Game Object that owns the Timeline (this is the Game Object that has a PlayableDirector component, which is used to trigger the Timeline). Events will be posted and RTPCs will modify this target GameObject.
Note: | To reduce allocations at runtime, be sure to add an AkGameObj to any GameObject that will post events or have its RTPCs modified. |
The AkTimelineEventTrack and AkTimelineRtpcTrack tracks each hold corresponding clips: the AkTimelineEventPlayable clip and the AkTimelineRtpcPlayable clip, respectively. These can be added to a track using the track's menu or by right-clicking on the track.
All clips in Timeline have timing properties that are displayed in the top portion of the inspector. For more information on these properties, refer to Clip Properties.
The following properties are accessible from the inspector of an AkTimelineEventPlayable clip:
Ease In Duration
is greater than zero.Ease Out Duration
is greater than zero.The following properties are accessible from the inspector of an AkTimelineRtpcPlayable clip:
In order to begin animating the value of the RTPC sent to the track target, the following steps should be taken:
Note: | For more information on modifying animation curves in Timeline, refer to Record basic animation. |
Currently scrubbing is supported in Edit mode and Play mode in the Unity Editor. However, play back will not be available across assembly reloads.
To ensure that Event lengths are properly represented in the AkTimelineEventTracks, the Wwise project needs to be set up to estimate the duration of its audio Events and XML metadata must be generated. To enable these project-wide settings, go to the Project Settings' SoundBanks tab. Enable the Estimated duration check box within the Metadata Options group box and enable the Generate XML Metadata check box within the SoundBank Settings group box, as seen below.
Questions? Problems? Need more info? Contact us, and we can help!
Visit our Support pageRegister your project and we'll help you get started with no strings attached!
Get started with Wwise