Position shaker. Contains ShakerTrack for Timeline package.
- Unity 2022.2 or later
Use ONE of two options:
Download a unity package from the latest release.
- Open Package Manager from Window > Package Manager.
- Click the "+" button > Add package from git URL.
- Enter the following URL:
https://github.com/Demexis/Demegraunt.Framework.Shaker.git
Alternatively, open Packages/manifest.json and add the following to the dependencies block:
{
"dependencies": {
"com.demegraunt.framework.shaker": "https://github.com/Demexis/Demegraunt.Framework.Shaker.git"
}
}Attach the ShakerComponent component to a game-object. Check the bool ShakeAlways or call Shake(float time) manually in code or via UnityEvent(-s).
Add ShakeTrack to your timeline (+ -> Demegraunt.Framework -> Shake Track). Set the "shaking transform". RMB, click Add Shake Clip, configure parameters.
Check Shaker.cs and ShakerPlayback.cs. You can use them in your custom systems and tools.