Skip to content

Scripts.CameraShake

Wesley Haws edited this page Jan 1, 2017 · 4 revisions

##Scripts - CameraShake

###What does this do?


Shakes the camera when the functions "ShakeCamera()" or "ShakeCamera(amount, duration)" is triggered.

###Who/What is this for?


Player object only.

###Setup


Example Setup:

(Note: This example is counting on you using "ShakeCamera(amount, duration)" function. If you don't want to supply values have them already set in the inspector)

Example Setup

Parameter Type Description
Debug Mode bool For debugging only. Will log shake information.
Shake Amount float How much to randomly shake the camera.
Shake Duration float How long to randomly shake the camera.
Smooth bool Enable smooth shaking. No jarring.
Smooth Amount float Transition time to slowly fade out shaking.
Clone this wiki locally