Home

Awesome

Bringing After Effects shape animations to Unity.

Inspired by the Lottie frameworks, which utilize animation data from After Effects to create animated vector graphics on native platforms.

With the help of Unity's Vector Graphics package, this library brings the same to Unity.

Examples

Ex1

Ex2

Features

Currently supports animation for:

Usage

First, use the Bodymovin extension in After Effects to export your composition.

Second, enable Vector Graphics from the Package Manager in Unity.

Third, add the exported json to your Resources folder.

Editor

Add a Movin Renderer component to your GameObject, and point the resourcePath to your json file (located under Resources)

Ex

Script instantiation

Movin mov = new Movin(transform, "json/samurai");
mov.Play();

Pass your GameObject's transform as a parameter, followed by the json path (located under Resources)

Optional parameters

Sort [Int]: Order in layer
Scale [Float]: Scale of rendered composition
Stroke Width [Float]: Width of AE strokes
Loop [Bool]: Should the composition loop
Quality [Float (0.01 - 1.0)]: Quality of the shapes drawn (lower is better)

TODO