Adding Achievements & Leaderboard to your Unity Game in 10 Minutes | Google Play Services

29



NB: Turn your YouTube volume up….Your game or app needs to be published to Alpha, Beta or Production and installed from the Google Play Store for play services to work.

Implementing Google Play Services in your Unity Game is actually fairly easy. In this video, I’m gonna put you through the process using the new Google Play Console.

Please Like & Subscribe to encourage me to make more videos.

Google Play Games Plugin:

Download PlayServices Script:

Music by LAKEY INSPIRED:

BTW, sorry about the video quality, my PC is pretty wack and also just starting out this YouTube thingy. Surely gonna improve with time.

TAGS: #unity3D #unity #unitygameengine #unityplayservices #googleplaygames #unitytutorial

Tag: google play game services, Unity, Unity google play services, Unity leaderboard, Unity achievements, Google play services, Google play console new, Unity Tutorial, Unity google play services tutorial

Xem thêm: https://thủthuậthay.vn/category/internet

Nguồn: https://thủthuậthay.vn

29 Comments

  1. AssetsScriptsPlayer.cs(109,32): error CS1503: Argument 1: cannot convert from 'float' to 'long' when i write the Social.ReportScore(sceneBestTime, leaderboardID, success => { });

    How can i solve it ?

    Reply
  2. hello
    im on the coding part and have made the configs in google play, but ive gotten an error on these parts of the code, was there something i missed when i imported the package? in the list when im importing i was able to see those 2 name spaces, but when importing it disappears in the googleplay import folder, any help would be appreciated 🙂

    void Start()

    {

    DontDestroyOnLoad(this);

    try

    {

    PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().Build();
    //error here (Namespace could not be found)

    PlayGamesPlatform.InitializeInstance(config); //error here (Does not exist in current context)

    PlayGamesPlatform.DebugLogEnabled = true; //error here (Does not exist in current context)

    PlayGamesPlatform.Activate(); //error here (Does not exist in current context)

    Social.localUser.Authenticate((bool success) => { });

    }

    catch (Exception exception)

    {

    Debug.Log(exception);

    }

    }

    Reply
  3. Hello, I am doing sign in part and after Building it on my mobile, Play Games services popup appears and after clicking on my google account its infinite loading, what to do now??

    Reply
  4. Hello I have a question, how would you add the showLeaderboards and AddScoreToLeaderboards funtions to button in other scenes?
    I created another script and added them but idk what happened and it just kept stopping when I try to open it after publishing to alpha. Idk even know if this is related. help please.

    Also I have tried fixing the crashing thing and replaced the
    Social.localUser.Authenticate((bool success) => { });

    with
    PlayGamesPlatform.Instance.Authenticate(SignInInteractivity.CanPromptOnce, (result) =>{});

    Please help me I am new to this and I dont understand what should I do

    Reply
  5. Mehmet Ali Yılmaz

    1 month ago

    ​ @Majeed Dev I did exactly as you told but the leaderboard is not working. my game is on alpha track and when i open the game it is showing the signing but the leaderboard is not working the button is being pressed but nothing happens

    Reply
  6. Hello ! I used your downloaded code, I assigned the functions to each button, my game has been published to production and has been installed from google play store, however the button highlights when pressed but nothing happens, what could be causing this hope you can help

    Reply
  7. Nice tutorial, but the achievements are not unlocked.

    I have the unlock gap assigned to a button, but pressing it doesn't unlock the achievement.

    The achievements appear, the achievements window also appears, the problem is that the achievements are not unlocked correctly, what could be happening?

    My game is published and I have everything in order.

    Reply
  8. Bar Evolution Calisthenics · Edit

    @Majeed Dev I used your downloaded code, I assigned the functions to each button, my game has been published to production and has been installed from google play store, however the button highlights whwn pressed but nothing happens, what could be causing this hooe you can help, thanks for the updated tutorial

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *