Issue with Fade

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Trashrat
Posts: 33
Joined: Fri Oct 13, 2023 11:38 am

Issue with Fade

Post by Trashrat »

Hi there,

apologies for asking what is surely a simply question but I am having some issues with the Fade() sequence.

I aim, on a chosen conversation node, to fade out, enable and disable a few objects, and then fade back in. It works perfectly except for the innitial fade out. Here is how i have my sequences.

Continue();
Fade(stay, 3);
Delay(3);
SetActive(PlayerFPS, false);
SetActive(ChairController, true);
Fade(in, 3)

I had the delay in here to see if that would help, as it seems to jump straight to fading back in.

Thank you for any help.
User avatar
Tony Li
Posts: 23252
Joined: Thu Jul 18, 2013 1:27 pm

Re: Issue with Fade

Post by Tony Li »

Hi,

Every sequencer command will attempt to run as soon as the dialogue entry starts unless you specify timing information. (See sequencer command syntax.)

Try:

Code: Select all

Fade(stay, 3);
SetActive(PlayerFPS, false)@3;
SetActive(ChairController, true)@3;
Fade(in, 3)@3;
Continue()@6
Trashrat
Posts: 33
Joined: Fri Oct 13, 2023 11:38 am

Re: Issue with Fade

Post by Trashrat »

Thank you very much for the response. Unfortunately it isn't quite working the way I am intending, as the controller isn't changing before it fades back up again (so it only changes once the screen has faded back up). I have tried a few variations with @seconds but unfortunately cannot find a solution.
User avatar
Tony Li
Posts: 23252
Joined: Thu Jul 18, 2013 1:27 pm

Re: Issue with Fade

Post by Tony Li »

Hi,

Does the sequence set the correct GameObjects active?

Are there any errors or warnings in the Console window? The helpful messages will probably be warnings in this case, but errors are important, too.
Trashrat
Posts: 33
Joined: Fri Oct 13, 2023 11:38 am

Re: Issue with Fade

Post by Trashrat »

Apologies, I have something close to it working now. It had to do with the fact I was using a "Cinemachine camera priority on dialogue event" script, and also most likely beause it was the end of the conversation too. I turned off that camera and it works now, so now to figure out how to have something with a framed camera too. Thank you
User avatar
Tony Li
Posts: 23252
Joined: Thu Jul 18, 2013 1:27 pm

Re: Issue with Fade

Post by Tony Li »

The Dialogue System has some sequencer commands that control Cinemachine. They might be helpful.
Trashrat
Posts: 33
Joined: Fri Oct 13, 2023 11:38 am

Re: Issue with Fade

Post by Trashrat »

Thank you, that's much appreciated.
User avatar
Tony Li
Posts: 23252
Joined: Thu Jul 18, 2013 1:27 pm

Re: Issue with Fade

Post by Tony Li »

Glad to help!
Post Reply