Hello there
Anyone have some useful tips for creating a blinking effect with the first person controller camera?
For example having the player wake up and having the camera fade in, blink a few times and then clear view.
Hello there
Anyone have some useful tips for creating a blinking effect with the first person controller camera?
For example having the player wake up and having the camera fade in, blink a few times and then clear view.
its quite easy, but the blurry effect can only be achieved with unity pro, but if you want, you can use loadlevel fade that fades in the level from whatever color you want (black maybe) to clear.
if ( wakeup == true){
LevelLoadFade.FadeAndLoadLevel("Level1", Color.black, 3);
}
this will load the level called Level1, in 3 seconds, from black to clear.
Blinking is a little harder to explain but easy to do… This is my algorthm
- Create 2 new gui texture, upper eye lid, and lower eye lid
- create blinking texture in photoshop/paint/whatever
- create a script that makes the gui texture move up on the upper eye lid, and down on the lower eye lid using Pixel Insert X, and Y.
Hoped this helped and it was what your lookin for, maybe someone else can figure out a better way to do this im sure this is the best (without the need for unity pro)
Hi
Cheers for the tips. I managed to achieve an ok blinking effect by using the FadeInOut script from the unify forum and then animating two eye lids attached to the main camera to play on awake and then a destroy script to get rid of them after the animation has finished. It probably needs a lot of tweaking but looks ok. It was a very easy and light on scripting process. Ill post it up when I get the chance.
Here it is, like I said it needs a lot of changes but it’s a nice start
Hey guys,
if you’re looking for a ready solution you might want to take a look at
EYE Blink Effect (FPS / VR)
Unity Asset Store - The Best Assets for Game Making