playMaker

Author Topic: Camera Fade Out and Flashes  (Read 1771 times)

Alatriste

  • Full Member
  • ***
  • Posts: 193
Camera Fade Out and Flashes
« 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?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Camera Fade Out and Flashes
« Reply #1 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Camera Fade Out and Flashes
« Reply #2 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)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Camera Fade Out and Flashes
« Reply #3 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