Video play

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
mudukke
Posts: 73
Joined: Wed Sep 27, 2023 4:15 am

Video play

Post by mudukke »

Just out of interest, can you play a video file from the dialogue nodes?
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Video play

Post by Tony Li »

Hi,

You could write a simple sequencer command to do it.

But an easy way that people tend to use is to put a VideoPlayer on an inactive GameObject with a unique name. In the dialogue entry's Sequence field, they use SetActive() to activate that GameObject. No need to write a custom sequencer command this way. Another alternative is to use an OnExecute() scene event.
mudukke
Posts: 73
Joined: Wed Sep 27, 2023 4:15 am

Re: Video play

Post by mudukke »

Thanks again Tony!
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Video play

Post by Tony Li »

Happy to help!
Post Reply