Referencing a Timeline in a Sequence Clip

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
SystemId
Posts: 30
Joined: Thu Aug 08, 2019 1:31 pm

Referencing a Timeline in a Sequence Clip

Post by SystemId »

Hello,
I am currently making a small Cutscene with Timelines to have Barks popup conversation text and pause the timeline.

Other than using a GameObject specific name, is there a way for the PlaySequenceClip to reference a Timeline?

Right now I have in a Sequence Clip:

Timeline(speed, NPC1, 0);
Timeline(speed, NPC1, 1)@Message(ResumeBark);

But I really do not want to use a specific name (NPC1) because there are multiple NPCs with the same GameObject name.

If there was a way the PlaySequenceTrack could automatically reference the Playable Director that is playing it, that would be ideal, if not being able to Drag the GameObject as the Ref for the PlaySequenceTrack itself. Is there a way I can set this up, or does the Dialogue System have something in place already?
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: Referencing a Timeline in a Sequence Clip

Post by Tony Li »

Hi,

If you omit the GameObject name, it will look for a timeline on the dialogue entry node's speaker GameObject.
Post Reply