Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by Tim-Michels · Jun 04, 2014 at 12:25 PM · androidleaderboardsociallerpzusername

Social.localUser username = Lerpz?

Hi,

I'm trying to implement a basic leaderboard through the Google Gameservices, but when I try this:

 void Start()
     {
         Social.localUser.Authenticate(ProcessAuthentication);
     }
 
     void ProcessAuthentication(bool success)
     {
         Debug.Log("Authenticated, user = " + Social.localUser.userName);
     }

The username that gets logged is 'Lerpz'. This happens in both editor and on an Android device (using logcat to see the log)

I really don't understand where this is coming from, my project is in no way connected to the Lerpz-project, so my guess is I'm missing something to setup basic Social features.

I can't submit a highscore or get any leaderboard, so I'm really stuck here.

Any help on this is very much appreciated.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Soleferry · Jul 23, 2014 at 12:28 PM 0
Share

I have the same problem and really wonder why !

2 Replies

· Add your reply
  • Sort: 
avatar image
12

Answer by Soleferry · Jul 23, 2014 at 12:44 PM

Ok i just found out what was the problem.

Lerpz is our localUser cause we don't success to activate the google play platform. To remind everybody, the code to use is :

 using GooglePlayGames;
     using UnityEngine.SocialPlatforms;
     ...
 
     // recommended for debugging:
     PlayGamesPlatform.DebugLogEnabled = true;
 
     // Activate the Google Play Games platform
     PlayGamesPlatform.Activate();

This allow you to activate the google play platform and replace the local platform used by unity, which contain this mysterious Lerpz. Do this activation only one time in your code, in a start or something and it'll be okay !

For those who want the complete instructions about the plugin Google Play-Unity, here is it : https://github.com/playgameservices/play-games-plugin-for-unity

Hope it will help !

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image boatnik · Apr 30, 2015 at 10:48 PM 0
Share

Thanks for following up with the solution you found!

avatar image jaydeepbhayani · May 14, 2018 at 11:55 AM 0
Share

it is necessary that the apk should be in playstore, for testing?, because when i'm trying to implement same code in my game app, Pop up of game play is co$$anonymous$$g but in my log it showing authentication failed.

avatar image
0

Answer by orhankurulan · Nov 15, 2015 at 08:09 AM

So how do we get username and email and pass it to a private string? Any idea?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

24 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Prevous score value for leaderboard in GameCenter 0 Answers

google leaderboard crashing my game? 3 Answers

User modified/customized Android native Twitter posts 1 Answer

Simple Leaderboard for Android without using Google services? 1 Answer

Google Play Games plugin for Unity Not Authenticating 9 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges