godot-googleplay-games-services
Tags:
98d44c9-Bugs-Signin-Off-Godot Android plugin for the Google Play Games Services
Usage
method
- signIn()
signal
- _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")
Compiling
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