playMaker

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

Alatriste

  • Full Member
  • ***
  • Posts: 179
    • View Profile
Camera Fade Out and Flashes
« on: March 31, 2019, 03: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: 3572
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Camera Fade Out and Flashes
« Reply #1 on: April 01, 2019, 12: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: 4110
    • View Profile
    • jinxtergames
Re: Camera Fade Out and Flashes
« Reply #2 on: April 02, 2019, 02: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: 14045
  • Official Playmaker Support
    • View Profile
Re: Camera Fade Out and Flashes
« Reply #3 on: April 02, 2019, 07: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