### Installing Unity Lottie Plugin via Package Manager Source: https://github.com/gindemit/unity-rlottie/blob/main/README.md Provides the Git URL to add the Unity Lottie Animation plugin to your project using the Unity Package Manager. This is the recommended method for installation. ```Text https://github.com/gindemit/unity-rlottie.git?path=/unity/RLottieUnity/Assets/LottiePlugin/#0.2.2 ``` -------------------------------- ### Implementing Lottie Animation Lifecycle in Unity C# Source: https://github.com/gindemit/unity-rlottie/blob/main/README.md Provides a complete C# script example for managing the lifecycle of a Lottie animation. This script attaches to a GameObject with an AnimatedImage component, automatically playing the animation on start and stopping it when the GameObject is disabled. ```C# // Attach this script to a GameObject with AnimatedImage component using UnityEngine; using LottiePlugin.UI; public class AnimationController : MonoBehaviour { private AnimatedImage animatedImage; private void Awake() { animatedImage = GetComponent(); } private void Start() { animatedImage.Play(); // Start the animation } private void OnDisable() { animatedImage.Stop(); // Stop the animation } } ``` -------------------------------- ### Installing Graphy via OpenUPM CLI Source: https://github.com/gindemit/unity-rlottie/blob/main/unity/RLottieUnity/Assets/LottiePlugin/Samples~/SceneUI/Graphy - Ultimate Stats Monitor/README.md This command installs the Graphy package using the OpenUPM command-line interface. OpenUPM is a package registry for Unity, simplifying the process of adding and managing Unity packages. ```Shell openupm add com.tayx.graphy ``` -------------------------------- ### Installing Graphy via Git URL in manifest.json Source: https://github.com/gindemit/unity-rlottie/blob/main/unity/RLottieUnity/Assets/LottiePlugin/Samples~/SceneUI/Graphy - Ultimate Stats Monitor/README.md This JSON snippet demonstrates how to add Graphy as a dependency in your Unity project's `manifest.json` file by directly referencing its GitHub repository URL. This method allows for direct integration from the source control. ```JSON { "dependencies": { ... "com.tayx.graphy": "https://github.com/Tayx94/graphy.git", ... } } ``` -------------------------------- ### Controlling Lottie Animation Playback in Unity C# Source: https://github.com/gindemit/unity-rlottie/blob/main/README.md Demonstrates how to programmatically play and stop a Lottie animation using the Play() and Stop() methods of the AnimatedImage component in Unity C#. This snippet assumes the AnimatedImage component is already attached to the GameObject. ```C# // Get a reference to the AnimatedImage AnimatedImage animatedImage = gameObject.GetComponent(); // Play the animation animatedImage.Play(); // Stop the animation animatedImage.Stop(); ``` -------------------------------- ### Scaling Unity Canvas Factor (C#) Source: https://github.com/gindemit/unity-rlottie/blob/main/unity/RLottieUnity/Assets/LottiePlugin/Samples~/SceneUI/Graphy - Ultimate Stats Monitor/README.md This snippet demonstrates how to programmatically adjust the scale factor of a Unity UI Canvas component. It multiplies the current scaleFactor by a given 'multiplier', which can be used for dynamic UI scaling. This operation should be re-applied if the canvas's scale factor changes externally. ```C# GetComponent().scaleFactor *= multiplier; ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.