Coder Social home page Coder Social logo

chrismasterton / unity-rlottie Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gindemit/unity-rlottie

0.0 0.0 0.0 21.33 MB

Unity library that plays Lottie Animation to Texture2D

License: MIT License

C++ 1.19% C 0.10% Java 0.44% C# 64.43% CMake 1.07% HLSL 2.96% ShaderLab 29.81%

unity-rlottie's Introduction

Unity Lottie Animation Plugin

GitHub release Unity version License

Welcome to the Unity Lottie Animation plugin! This Unity library enables you to play Lottie animations as Texture2D in your Unity projects. It's a powerful and easy-to-use solution that leverages Samsung's rlottie library to bring smooth Lottie animations to your games and applications.

Lottie loads and renders animations and vectors exported in the bodymovin JSON format. Bodymovin JSON can be created and exported from After Effects with bodymovin, Sketch with Lottie Sketch Export, and from Haiku.

For the first time, designers can create and ship beautiful animations without an engineer painstakingly recreating it by hand. Since the animation is backed by JSON they are extremely small in size but can be large in complexity!

Features

  • Play Lottie animations as Texture2D in Unity
  • Easy integration and usage
  • High performance and low memory footprint
  • Uses Samsung's rlottie library internally
  • Compatible with Unity 2020.3 and later

Installation

To install the Unity Lottie Animation to Texture2D plugin using the Unity Package Manager, follow these steps:

  1. Open your Unity project and navigate to Window > Package Manager.
  2. Click the + button in the top-left corner and select Add package from git URL....
  3. Enter the following URL and click Add:
    https://github.com/gindemit/unity-rlottie.git?path=/unity/RLottieUnity/Assets/LottiePlugin/#0.1.0
    

Examples

Check out the 'Scene UI' Sample in Unity Package manager.

  1. Open your Unity project and navigate to Window > Package Manager.
  2. Select the installed Lottie Animation package on the left
  3. Fold out the Samples section
  4. Click 'Import' button on the Scene UI sample
  5. After importing it will ask you to copy the sample animations to the Assets/StreaminAssets folder
  6. Click 'Copy' button in the 'Missing lottie animations' dialog
  7. Open the 'SampleScene' from the sample in 'Assets/Samples/Lottie Animation/[version]/Scene UI/Scenes/' folder
  8. Hit play in Unity editor
2021-11-30.22-28-52.mp4

Support

If you encounter any issues or have questions, please create an issue on GitHub.

Credits

This plugin is built on top of Samsung's rlottie library, which is used internally for Lottie animation rendering.

License

This project is licensed under the MIT License. See the LICENSE file for details.

unity-rlottie's People

Contributors

gindemit avatar konstantin-soulside avatar negascout avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.