Wwise Timeline Integration

Timeline is Unity's cinematic editing tool. It can be used to create game-play sequences, audio sequences, and other cinematic content.

For more information on Timeline refer to Timeline Docs.

For instructions on how to create a Timeline Asset and Timeline instance, refer to Timeline Usage.

Wwise Timeline Tracks

The Wwise Unity Integration adds two tracks: the AkRTPC track and the AkEvent track. The AkRTPC track is used to set Game Parameter values, and the AkEvent track is used to post Wwise Events. AkRTPC tracks and AkEvent tracks can be added to a Timeline in Unity using the "Add" dropdown button.

Timeline_Tracks.png

Adding AK tracks to Timeline

Ak Track Object Bindings

AkEvent tracks and AkRTPC tracks have object bindings which can be set to any Game Object. If this is left as None, the Event messages or RTPC messages in the track will be triggered on the Game Object that owns the Timeline (this is the Game Object that has a PlayableDirector component, which is used to trigger the Timeline). If the track binding is set to a different Game Object, the messages will be triggered on that Game Object.

The AkRTPC Parameter Property

AkRTPC tracks have one property in their property inspector: Parameter. This is the Wwise RTPC parameter that will be set from the various clips in the track.

Timeline_RTPCTrackProperties.png

RTPC Track Parameter Property

Wwise Timeline Playable Clips

The AkEvent track and the AkRTPC tracks each hold corresponding clips: the AkEventPlayable clip and the AkRTPCPlayable clip. These can be added to a track using the track's menu.

Timeline_AddingAClip.png

Adding AK clips to AK tracks

Timeline Clip Properties

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.

AkRTPCPlayable Clip Properties

The following properties are accessible from the inspector of an AkRTPCPlayable clip:

Timeline_RTPCProperties.png

AkRTPCPlayable Clip Properties

Timeline_AnimatingRTPCValues.png

Animating RTPC Values from Timeline

Following these steps will insert a keyframe into the RTPC track, below the RTPC clip. You can then use this Unity curve editor to add more keyframes. The keyframes have a context menu that can be used for more precise values.

Timeline_RTPCKeyframeContextMenu.png

RTPC Keyframe Context Menu

Timeline_RTPCKeyframeEdit.png

Editting RTPC Keyframe Values

AkEventPlayable Clip Properties

The following properties are accessible from the inspector of an AkEventPlayable clip:

Timeline_EventProperties.png

AkEventPlayable Clip Properties

Known Issues & Limitations

Currently scrubbing is only supported in Play mode in the Unity editor. This is due to an issue with Unity Playable callbacks in edit mode. Unity are aware of the issue: 953109. This means that "Play from anywhere" behavior is not supported in edit mode either. If you place the playhead somewhere between the beginning and end of a clip and play the timeline, while in edit mode, the event will not be triggered.

Wwise Project Setup

To ensure that Event lengths are properly represented in the AkEvent Tracks, the Wwise project needs to be set up to estimate the duration of its audio Events and JSON 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 JSON Metadata check box within the SoundBank Settings group box, as seen below.

project_settings.png

Required Project Settings for AkEvent Tracks

Generated on Tue Dec 4 10:52:19 2018 for Wwise Unity Integration by  doxygen 1.6.3