How to install via Package Manager?
I can't add this repository as a package via the package manager. I had this error in the console :
[Package Manager Window] Cannot perform upm operation: Unable to add package [https://github.com/adrenak/RestSharp.Unity.git]: [https://github.com/adrenak/RestSharp.Unity.git] does not point to a valid package. No package manifest was found. [NotFound].
It would be great to add it like a package. It is much easier to manager packages in this way in Unity. Thanks!
Hey, sorry for the late reply. If you want to add using package manager there are two ways:
-
Add via git URL: https://github.com/adrenak/RestSharp.Unity.git#upm as the UPM branch is separate
-
Second, add using the npmjs registry. Make sure your projects packages manifest has this scope: { "name": "registry.npmjs.org", "url": "https://registry.npmjs.org", "scopes": [ "com.adrenak.restsharp.unity" "org.npmjs" ] }
And the following as a dependency in the same file: "com.adrenak.restsharp.unity": "1.1.0"
Lemme know if this helps. UPM installation can get tricky 😅
Thanks for the great work - probably worth taking note of the extra branch in the original README. I passed in https://github.com/adrenak/RestSharp.Unity.git?path=/Assets/Adrenak.RestSharp.Unity which did work but figured there had to be a simpler way :P