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

Triggering a Camera Shake for 2D Cinemachine Camera

Discussion in 'Cinemachine' started by jak4694, Jan 24, 2019.

  1. jak4694

    jak4694

    Joined:
    Jan 24, 2019
    Posts:
    12
    Hello,

    I have implemented a stun mechanic for my player when they hit the ground after falling for too long, and I would like to trigger a short camera shake at the start of the stun. I already have a method that is called at the start of the stun where I could add a call to trigger a camera shake. However, I can't seem to find a way online to trigger this effect. How should I go about implementing the camera shake?
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658