Google Service Unity Plugin is a Unity Plugin For Google Service.Include Google Admob Unity,Firebase Analytic Unity,Google Game API Unity. Login,Achievement,Leaderboard,Event,Quest,Snapshot,RealTimePlayGame,TurnbasedPlayGame API are supported and easy to use with c# or js.
- Unity Admob API
- Unity Firebase Analytic API
- Unity Google Game API
- Unity Admob Tutorial
- Unity Firebase Analytic Tutorial
- Unity Play Game Service Tutorial
- Firebase Remote config and log
- Open your project in the Unity editor.
- Navigate to Assets -> Import Package -> Custom Package.
- Select the google_service_unity_plugin.unitypackage file.
- Import all of the files for the plugins by selecting Import. Make sure to check for any conflicts with files.playgamedemo.cs and game.unity is demo file can be ignored.
- replace all "com.google.demo" with your app package id in AndroidManifest.xml
- replace app_id content with your google play game id,replace google_app_id content with your google firebase app id in ids.xml
using admob;
Admob.Instance().initAdmob("ca-app-pub-3940256099942544/2934735716", "ca-app-pub-3940256099942544/4411468910");
Admob.Instance().showBannerRelative(AdSize.Banner, AdPosition.BOTTOM_CENTER, 30, "defaultBanner");
just 2 line code,admob banner will been shown on screen.for more usage Unity Admob Tutorial
using google.service.game;
FirebaseAnalytic.Instance().logEvent("appstart", "{\"time\":\"112222\",\"name\":\"demouser\"}");
Log Event with Firebase Analytic.For more usage about Firebase Analytic Unity Unity Firebase Analytic Tutorial
- Login with google play service
using google.service.game;
GoogleGame.Instance().login (true, false);
- You can call google play game api after login success such as show Leaderboards with default UI
GoogleGame.Instance().showLeaderboards();
- Show Google play game Achievements with default UI
GoogleGame.Instance().showAchievements();
4.Fore more usage about google play game service in unity Unity Google Play Game Tutorial
Project Home https://github.com/unity-plugins/google-play-game-service-unity-plugin/