Godot Android plugin for the Google Play Games Services
- signIn()
- _on_sign_in_success(player_id: String)
- _on_sign_in_failed
if Engine.has_singleton("GooglePlayGamesServices"):
var singleton = Engine.get_singleton("GooglePlayGamesServices")
singleton.connect("_on_sign_in_success", self, "_on_sign_in_success")
singleton.connect("_on_sign_in_failed", self, "_on_sign_in_failed")
singleton.signIn()
func _on_sign_in_success(player_id: String):
print(player_id)
func _on_sign_in_failed():
print("_on_sign_in_failed")
Steps to build:
- Clone this Git repository
- Run
./gradlew build
in the cloned repository - copy *.aar and gdap files
cp GooglePlayGamesServices/build/outputs/aar/GooglePlayGamesServices-release.aar ${YOUR_PROJECT}/android/plugin/
cp GooglePlayGamesServices.gdap ${YOUR_PROJECT}/android/plugin