play-games-plugin-for-unity icon indicating copy to clipboard operation
play-games-plugin-for-unity copied to clipboard

Remove hardcoded enforcement for RootPath property

Open contatodoaleoliveira opened this issue 3 years ago • 0 comments

Resolves https://github.com/playgameservices/play-games-plugin-for-unity/issues/2510

The RootPath property on the GPGSUtil class was hardcoded as a direct child folder inside "Assets". This prevented the plugin to be organized inside subfolder or to be wrapped inside a custom Unity Package (all of those attempts would result in in "Plugin error: GooglePlayGames folder was renamed").

This pull requests fix that and adds a more reliable way of handling the project structure. The solution is inspired by https://github.com/playgameservices/play-games-plugin-for-unity/pull/2120 from @mirkoquaro.

contatodoaleoliveira avatar Nov 26 '20 16:11 contatodoaleoliveira