I'm teleporting my player with my camera, so I want to have my Camera go dark for a second and then back to normal. How would I achieve this?
I'm not using Cinemachine ATM but think of doing so
CodePudding user response:
you should make two animations with unity animation window to a UI panel
- create new UI> panel 2.Give it a color Black with alpha 0
- animate the color from black alpha 0 to black with alpha 255 or 1 btw you should animate opacity from 0 to max and name it "Fade in"
- make another animation form max alpha to transparent call it "Fade out"
now you have two animation when you need your camera go dark animate use Fade in