Page 1 of 1

Fading all visual elements as one

Posted: Mon Jul 15, 2024 4:20 am
by Adrian
Hey! Quick question: we want all the dialogue visuals (portrait, text bg, name bg etc) to fade out as one element/uniform alpha (to avoid seeing the other elements through the others while fading). At the moment it's a bit awkward, with multiple elements being visible and fading out overlapping each other with varying alphas.

What's the recommended / best solution for this?

Thanks in advance!

Re: Fading all visual elements as one

Posted: Mon Jul 15, 2024 3:30 pm
by Tony Li
Hi,

This depends on how your dialogue UI is set up.

Do you want to fade the entire dialogue UI when the conversation starts and ends? If so, set up the fade on the Dialogue Panel. You can use a Canvas Group and a Canvas Group Animator Controller.

If you want to fade a single subtitle panel, can you fade out the entire subtitle panel? This would presumably include the panel, subtitle text, portrait image, and portrait name. You can use a Canvas Group and a Canvas Group Animator Controller.