Shaking HUD

Yes, it has to be the animation in the widget.

  1. Press green [+Animation] button.
  2. Select the NewAnimation and click green [+Track] button and select your main Canvas Panel (or the main parent object as you have it).
  3. Now on the newly added track, press grey [+] and select Transform.
  4. Open the Transform tree. You can delete the Keys for Rotation, Scale, and Shear. Open the Translation subtree.
  5. Now you have two values: X and Y. Note that they do not represent location of the Canvas Panel — they indicate the offset of the panel relative to its initial position.
  6. Set the keys as you wish to get what you want.
  7. In the Graph, you will now have the Animation in your variables. Just drag it into the Graph and Play when needed.