EZ Camera Shake is a free powerful asset for achieving easy and quality camera shake in Unity. It was created by Road Turtle Games.
It allows Unity programmers to add camera shake to their scenes with as little as one line of code, like:
CameraShaker.Instance.ShakeOnce(magn, rough, fadeIn, fadeOut);
It used to be available on the Unity Asset Store, but has since been removed and open sourced here.
As of the time of writing this, this package works for Unity 2018 perfectly. The .unitypackage
can be downloaded here. PDF documentation is also included in the package.
Okay, here's a video.
This is actually the expected behavour and is explained in the documentation! You can also read a bit about it in #3 and #4.
Yes, now there is. When this EZ Camera Shake was created (and also around the time it was open sourced), there weren't that many free and easy ways to achieve camera shake. Now, however, easy and complex shake behaviours can be made with Unity's free camera management package Cinemachine.
The original version uploaded on GitHub was v1.04
- Replaced deprecated scene management methods for demo scene. @HexedHero
- Added the ability to add an offset to a camera's defualt (0,0,0) position. @axesve