Screen fader canvas too high in the sort order

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

Screen fader canvas too high in the sort order

Post by Abelius »

Hi there,

I've been trying to find some old post about this, but couldn't find anything, not a go-to page on the documentation.

In a nutshell, I need that the Sort Order for the "fader" canvas is set to 32765, instead of 32766.

The reason for that is that I have a huge Continue button that occupies all the screen, and also some debugging panels with buttons, and I don't want to advance the dialogue when I press those debug buttons, which it happens because the DS canvas and the debug canvas both share 32767, which is the max number I can introduce.

Now, I could just set DS canvas to 32766, but that's also the sort order for the fader canvas and dialogue entries don't show up when it's faded out. And I want them displaying even in that case.

So, the only solution I can think of is to set the fader canvas to 32765, but I don't see any way to do that, other than "watching" when it is instantiated and changing the property at that instant.

It would be more convenient if you could pinpoint the script where that number is set, so I can modify it, TBH.

Thanks!
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 21984
Joined: Thu Jul 18, 2013 1:27 pm

Re: Screen fader canvas too high in the sort order

Post by Tony Li »

Hi,

The sort order is defined in SequencerCommandFade.cs:

Code: Select all

private const int FaderCanvasSortOrder = 32766;
For version 2.2.21, I'll change it to 32760.
User avatar
Abelius
Posts: 318
Joined: Fri Jul 21, 2017 12:45 pm

Re: Screen fader canvas too high in the sort order

Post by Abelius »

Nice, thanks!
Unity 2019.4.9f1
Dialogue System 2.2.15
Post Reply