The Dialogue System has built-in support for Timeline and Playables in Unity 2017+.
Timeline is designed to pair well with Cinemachine Support.
IL2CPP/UWP Note: Due to a bug in Unity 2017.3.0f3, Timeline support is not available in this version for IL2CPP builds. Timeline support for IL2CPP is available for Unity 2017.0 - 2017.2, 2017.4+, and 2018.
To play an example scene that uses Timeline, import the unitypackage Assets / Dialogue System / Examples / Cinemachine and Timeline
. This will add an example scene in a subfolder named Cinemachine and Timeline Example
.
The door near Sergeant Graves
is interactable. It plays a simple Timeline when the player uses it. This Timeline animates some lights, shows an alert message, and makes Sergeant Graves
bark.
The Dialogue System adds these playables to Timeline in the category PixelCrushers.DialogueSystem
:
Makes the actor assigned to the Bark Track bark some text (which can be localized; see Localization) or bark from a conversation. More info: How to Play Barks
Starts a conversation with the actor assigned to the Conversation Track. More info: How to Start Conversations
Sets a quest state and/or quest entry state. More info: Quest System
Shows an alert message (which can be localized; see Localization) using the Dialogue System's dialogue UI. More info: How to Display Alerts
Plays a Dialogue System sequence. More info: Sequences
The Timeline Trigger plays a Timeline (Playable Director) when a specified gameplay event occurs.
The Timeline() sequencer command controls a Timeline (Playable Director). You can use it to play, pause, resume, and stop the Timeline from within a sequence.