How to remove flashing screen when changing Canvas Render Modes
I need to use screen shake in my game, but the problem was that my canvas was set to ScreenSpaceCamera, so the shake wouldn't do anything.
I fixed that by changing the render mode of the canvas while the shake animation is playing. But after that another problem showed up.
After changing the mode back to ScreenSpaceCamera from WorldSpace the screen flashes.
My code looks like this: It changes the render mode then do some stuff for the game and then calls out IENumerator that changes the mode back by using the RenderMode.ScreenSpaceCamera function.
So I was wondering is there a way to avoid this flashing?
flash.gif
(505.7 kB)
callout-function.png
(12.5 kB)
Comment