Fade everything but the dialog

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

Fade everything but the dialog

Post by AoF »

Hello, I've got a moment in my scene where everyone leaves and I want the background to fade to black, but I still want to narrate some lines.

I know one way I can do this is to create an animation that fades the background to black and have a sequence call it, but I was wondering if there's a built in way to do this?

I tried to use Fade(out), but as soon as it faded out, the scene became visible again. I tried Fade(stay) (which AFAICT is not documented in the reference) and that faded the dialogue, too.
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Fade everything but the dialog

Post by Tony Li »

Hi,

The Fade() command uses a Screen Space - Overlay canvas with a sorting order of 32766.

You can change the Dialogue Manager > Canvas's sorting order to 32768 to keep it visible on top of the Fade() command's canvas.

p.s. - Here's the Fade() command reference with a few more details like this that might be helpful.
AoF
Posts: 241
Joined: Sun May 12, 2019 8:36 pm

Re: Fade everything but the dialog

Post by AoF »

Thanks! Ah that does reference "stay." I found these docs first: http://www.pixelcrushers.com/dialogue_s ... ffect.html
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Fade everything but the dialog

Post by Tony Li »

The manual is a bit of a beast, isn't it. And yet every week someone points out details that are missing and should be added.
Post Reply