For the complete documentation index, see llms.txt. This page is also available as Markdown.

Setup Guide

Open Settings Window

Go to Tools -> Gley -> Game Services

Open Settings Window

Download SDK

Android Setup

Select Android platform.

Press Download Google Play Games SDK and import the plugin in your unity project

iOS Setup

Select iOS platform.

No additional SDK is required.

Add IDs

App ID

Go to your Google Play developer console and select your game.

Go to configuration and copy your Project ID.

Project ID location

Paste your Project ID inside Google Play App ID field

Add App ID

Achievement IDs

Go to your achievements in Google Play Console

Google Play Achievements

Add your achievements ID inside Settings Window

Settings Window Achievements

Add new achievement

Adds a new achievement field

Remove

Removes the achievement field

Achievement Name

Achievement Name (can only contain alphanumeric characters - no white spaces or special characters).

From the achievement names an enum will be automatically generated and it will be later used in code to submit the achievement.

Google Play ID

Store ID

Leaderboard IDs

Get your leaderboard IDs from Google Play

Google Play Leaderboards

Add your leaderboard IDs inside Settings Window

Settings Window Leaderboards

Add new leaderboard

Adds a new leaderboard field

Remove

Removes the leaderboard field

Leaderboard Name

Leaderboard Name (can only contain alphanumeric characters - no white spaces or special characters).

From the leaderboard names an enum will be automatically generated and it will be later used in code to submit the scores.

Google Play ID

Store ID

Copy Leaderboards and Achievements IDs to Settings Window

Project IDs
Settings Window IDs

Save

Every time you make a change inside Settings Window press the Save button.

Preparing the build

Before building your app, make sure to Force Resolve the android libraries.

Go to Assets->External Dependency Manager -> Android Resolver -> Force Resolve

Resolve Android Dependencies

Build

If you get this error at build:

Colliding APP_ID

Go to Assets -> Plugins -> Android and delete GooglePlayGamesManifest

Delete Manifest

This warning is normal. Is thrown by Google SDK because you did not use their setup window. Just close it.

Build Warning

Test

To test if your SDK integration and your IDs are correct please build the test the scene provided:

Assets/Gley/GameServices/Example/Scenes/GameServicesTest.unity

Last updated