Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[FREE] MilkShake Camera Shaker

Discussion in 'Assets and Asset Store' started by Cramonky, May 3, 2020.

  1. Cramonky

    Cramonky

    Joined:
    Apr 1, 2013
    Posts:
    186
    Hello!

    I am very pleased to present to you all MilkShake: a simple and easy-to-use camera shake asset, made as kind of a successor to the fairly popular EZ Camera Shake asset that I deprecated last year.


    Features
    • Fine control over the strength, roughness, position and rotation influence of your shakes.
    • Fade in, fade out, start, stop, pause, and resume shakes.
    • Adjust shake properties at run-time.
    • Shakes are automatically blended together, so you can stack shakes.
    • Easily shake all active cameras, or only apply a shake to specific cameras.
    • Create shake preset assets so you can easily save and edit shake parameters.

    Easy-to-Use API
    Code (CSharp):
    1. using UnityEngine;
    2. using MilkShake;
    3.  
    4. public class ShakeCamera : MonoBehaviour
    5. {
    6.     public Shaker MyShaker;
    7.     public ShakePreset MyShakePreset;
    8.  
    9.     private void Start()
    10.     {
    11.         //Shake only my shaker
    12.         MyShaker.Shake(MyShakePreset);
    13.  
    14.         //Shake all global shakers
    15.         Shaker.ShakeAll(MyShakePreset);
    16.     }
    17. }

    Save Shake Preset Assets

    Being a free asset, I cannot promise any significant updates in the future aside from necessary bug fixes. Still, I hope you all find this asset useful, and I am happy to answer any questions you may have!
     
    akhmetbekamirlan and Iman_col like this.
  2. Iman_col

    Iman_col

    Joined:
    Mar 24, 2018
    Posts:
    26
    It is perfect for this type of animations