play-games-plugin-for-unity
play-games-plugin-for-unity copied to clipboard
Unable to import UPM google.play.games - Missing meta - with fix
This form is for reporting Unity Plugin issues only. To report an issue with the Play Games Service (non-SDK related), check Google Play Games Services Support. Once you've read this section and determined that your issue is appropriate for this repository, please delete this section.
To Reproduce Steps to reproduce the behavior:
- Add to manifest.json "com.google.play.games": "https://github.com/playgameservices/play-games-plugin-for-unity.git?path=/Assets/Public/GooglePlayGames/com.google.play.games"
- Get errors about being unable to import due to version number invalid and meta files missing
Expected behavior Able to import using UPM
Observed behavior Errors when importing
Bug Report Get errors regarding version number invalid and after fixing that missing meta files
Screenshots Not needed
Versions
- Unity version: 2021.3.8 (does not matter)
- Google Play Games Plugin for Unity version: 0.11.1
Additional context Easy fix, have resolved it myself using my own branch v0.11.1, see git history https://github.com/snorrsi/play-games-plugin-for-unity/tree/v0.11.1
https://github.com/snorrsi/play-games-plugin-for-unity/commit/e03959be7b1f96b7737511a6102e5c9980eb6ce1 https://github.com/snorrsi/play-games-plugin-for-unity/commit/7358ee5994d1b1af169b05210bf623db0aeec73e
Able to import successfully using.. "com.google.play.games": "https://github.com/snorrsi/play-games-plugin-for-unity.git?path=/Assets/Public/GooglePlayGames/com.google.play.games#v0.11.1",
I have tried to do the same but there was many logic in this package that depend on generated files that, instead of generated in the project, it was generated relative to the package itself
so it would failed to generate things when it was included from remote source. And not only from C# script but in the gradle it would try to generate files and have some logic depend on those files too