Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Alatriste on March 31, 2019, 06:07:00 AM

Title: Camera Fade Out and Flashes
Post by: Alatriste on March 31, 2019, 06:07:00 AM
Hi,

I'm having this flash effect using the camera fade out action just before loading my next scene. I tried some solutions posted in the forum such as plac¡ng the FSM in the camera itself, but this didn't make any difference.

Would it be possible to improve this action making the "reset camera color" optional?
Title: Re: Camera Fade Out and Flashes
Post by: Alex Chouls on April 01, 2019, 03:26:43 PM
I'll take a look at this. The Camera Fade actions are quite old and use the old OnGUI methods. After the fade is finished you could try using Draw Fullscreen Color in the next state to stop the flicker.

But it would probably be better to use the new UI system instead, e.g., a canvas with a full-screen image and use Animate Float to change the alpha.
Title: Re: Camera Fade Out and Flashes
Post by: djaydino on April 02, 2019, 05:35:02 AM
Hi.
+1 to alex.
I also use the ui for fade in/out and more advanced animated stuff (like closing / opening  curtains for example)
Title: Re: Camera Fade Out and Flashes
Post by: jeanfabre on April 02, 2019, 10:03:22 AM
Hi,

 I always use a canvas with a full screen panel with a CanvasGroup component, and I can then contotl both the fading and blocking pointer events, I do this for all my windows, it's very convenient.

https://docs.unity3d.com/Manual/class-CanvasGroup.html

Bye,

Jean