Sequence Trigger (Script) vs Sequence Trigger (In Database)

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ricjonsu098
Posts: 45
Joined: Sat Jul 30, 2016 8:37 am

Sequence Trigger (Script) vs Sequence Trigger (In Database)

Post by ricjonsu098 »

What's the difference between the two? And also the advantages and disadvantages
User avatar
Tony Li
Posts: 22108
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence Trigger (Script) vs Sequence Trigger (In Database)

Post by Tony Li »

Hi,

Are you talking about this Sequence Trigger script:

Image

versus the Sequence field in the Dialogue Editor?

Image

If so, here are the differences:

The Sequence field runs when the Dialogue System shows the dialogue entry. (If the field is blank, the Dialogue System uses the Dialogue Manager's Default Sequence when showing the dialogue entry.)

The Sequence Trigger component runs outside of conversations. You can set it to run on a number of triggering events such as OnStart, OnEnable, OnTriggerEnter, etc. For example, in the Feature Demo scene, the Feature Demo GameObject has a Sequence Trigger that's set to OnStart. It runs the Fade(in) sequencer command when the scene starts.
ricjonsu098
Posts: 45
Joined: Sat Jul 30, 2016 8:37 am

Re: Sequence Trigger (Script) vs Sequence Trigger (In Database)

Post by ricjonsu098 »

Oh I see, thank you
Post Reply