Real-Serious-Games / C-Sharp-Promise

Promises library for C# for management of asynchronous operations.
MIT License
1.2k stars 149 forks source link

Create an Unity Package of this library #98

Closed jdnichollsc closed 4 years ago

jdnichollsc commented 5 years ago

Hi guys, I was wondering if you can include a .unitypackage file from the releases of this project with the source code and the README.

Let me know and thanks in advance, Juan

RoryDungan commented 4 years ago

I've created a package of this library on OpenUPM so it can be added easily via the package manager. This is preferable to .unitypackage files because the Unity Package Manager can keep track of versions, package files are stored separately to your Assets folder so don't get mixed up with your own assets, you can remove the package without having to worry about missing any files, and when upgrading the package, files that are no longer needed are deleted automatically.

jdnichollsc commented 4 years ago

Ohh very interesting, thanks!! 👍

jdnichollsc commented 4 years ago

If I want to upload the RestClient too, what's the package.json to create the package?

Captura de Pantalla 2020-04-02 a la(s) 12 10 34 a  m

Thanks in advance!

RoryDungan commented 4 years ago

You'll need to create one - see the Unity docs for details.

I'd also recommend creating your package out as an embedded package and then once you have a Git repo with just the package in it trying out installing it via the Git URL to make sure that it works before adding to OpenUPM.