Skip to content

This Google Service Unity Plugin Include Google Admob Unity Plugin,Firebase Analytic Unity Plugin,Google Play Game Unity Plugin. All Admob,Firebase Analytic,Play Game API are supported and works well together

Notifications You must be signed in to change notification settings

resouce/google-play-game-service-unity-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Play Game Service Unity Plugin

Google Play Game Service Unity Plugin is a Unity Plugin For Google Service.Support Google Admob,Firebase Analytic,Google Game API. Login,Achievement,Leaderboard,Event,Quest,Snapshot,RealTimePlayGame,TurnbasedPlayGame API are supported .Support Android.

Unity Plugin Wiki and Documentation

Quick Start

Installation Google Play Game Service Unity Plugin

  1. Open your project in the Unity editor.
  2. Navigate to Assets -> Import Package -> Custom Package.
  3. Select the google_service_unity_plugin.unitypackage file.
  4. 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.
  5. replace all "com.google.demo" with your app package id in AndroidManifest.xml
  6. replace app_id content with your google play game id,replace google_app_id content with your google firebase app id in ids.xml

Show Admob Ads in Unity game

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

Analytic Unity game with firebase Analytic

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

Using Google Play Game Achievements and Leaderboards in Unity game

  1. Login with google play service
	using google.service.game;
	GoogleGame.Instance().login (true, false);
  1. You can call google play game api after login success such as show Leaderboards with default UI
	GoogleGame.Instance().showLeaderboards();
  1. 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

ScreenShot

Project Home https://github.com/unity-plugins/google-play-game-service-unity-plugin/

About

This Google Service Unity Plugin Include Google Admob Unity Plugin,Firebase Analytic Unity Plugin,Google Play Game Unity Plugin. All Admob,Firebase Analytic,Play Game API are supported and works well together

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%