gindemit / unity-rlottie

Unity library that plays Lottie Animation to Texture2D
MIT License
165 stars 26 forks source link

UPM entry? #20

Open gardyna opened 11 months ago

gardyna commented 11 months ago

I am currently creating a package which includes a set of scenes for other projects to use. Those scenes have lottie animations. Due to Unity's limitation that packages can't have git dependencies (source: https://docs.unity3d.com/Manual/upm-git.html), I really need this in an importable format for that if possible

gindemit commented 9 months ago

Hello @gardyna, thank you for your interest in this plugin! Could you please provide additional details on how it would be convenient for you to use the plugin? Are you looking to specify this plugin in the "dependencies" of your package? If possible, could you also share some links where this is discussed?

gilzoide commented 8 months ago

You know, you can actually declare a dependency on the com.gindemit.rlottie by version, it doesn't really matter if you install it using Git URLs, .tgz files or by downloading the package and extracting it inside the Packages folder.

Now, if you want the dependency to be installed automatically when installing the package that depends on it, you can instruct people to setup the OpenUPM scoped registry. Since this package is registered there (https://openupm.com/packages/com.gindemit.rlottie), it should be downloaded as a transitive dependency by Unity automatically.