• 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 /
  • Help Room /
This question was closed Jan 02, 2019 at 09:51 AM by IElectric for the following reason:

Other

avatar image
0
Question by IElectric · Jan 23, 2018 at 10:52 PM · game development

Help xboxlive plugin

Hello, I need some help to understand why on my game xboxlive plugin doesn't show my gamerpic and my gamertag, I'm correctly signin and the code recognized that is all OK, see the attachement picture, thank you very much, best regards... ![alt text][1]

Comment
Add comment
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

1 Reply

  • Sort: 
avatar image
0

Answer by IElectric · Jan 24, 2018 at 09:14 PM

Hello, I have found that the problem is in the exception generated from the method LoadProfileInfo from the unity xbox live plugin.

The exception was generated by

var t = www.texture;

but the signin from the xbox live account is correct, I'm working on my sandbox, I don't know how to solve, this take me crazy, help, best regards...

 private IEnumerator LoadProfileInfo()
 {
     var userId = ulong.Parse(this.XboxLiveUser.User.XboxUserId);
     var group = XboxLive.Instance.SocialManager.CreateSocialUserGroupFromList(this.XboxLiveUser.User, new List<ulong> { userId });
     var socialUser = group.GetUser(userId);

     var www = new WWW(socialUser.DisplayPicRaw + "&w=128");
     yield return www;

     try
     {

         if (www.isDone && string.IsNullOrEmpty(www.error))
         {
             **var t = www.texture;**
             var r = new Rect(0, 0, t.width, t.height);
             this.gamerpic.sprite = Sprite.Create(t, r, Vector2.zero);
         }

         this.gamertag.text = this.XboxLiveUser.User.Gamertag;
         this.gamerscore.text = socialUser.Gamerscore;

         if (socialUser.PreferredColor != null)
         {
             this.profileInfoPanel.GetComponent<Image>().color =
                 ColorFromHexString(socialUser.PreferredColor.PrimaryColor);
             this.gamerpicMask.color = ColorFromHexString(socialUser.PreferredColor.PrimaryColor);
         }

     }
     catch (Exception ex)
     {
         if (XboxLiveServicesSettings.Instance.DebugLogsOn)
         {
             Debug.Log("There was an error while loading Profile Info. Exception: " + ex.Message);
         }
     }
     this.Refresh();
 }
Comment
Add comment · Show 1 · 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 IElectric · Jan 30, 2018 at 09:49 PM 0
Share

I have found that if I run my game in Visual Studio on DEBUG mode GamerTag and GamerPic are loaded and showed properly, but if I run my game on $$anonymous$$ASTER mode GamerTag and GamerPic doesn't shown. Probably is normal because I work on my sandbox to test the game as UWP before publish, cheers...

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

123 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 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 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 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 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 avatar image avatar image avatar image

Related Questions

No Android SDK location in prefs. PLEASE HLP!,Everything Installed yet there is no SDK Location in Preferences 1 Answer

Game editor lag 0 Answers

How to create a checkerbox material or texture with containing two textures? 0 Answers

Multiplayer First Person Game 0 Answers

My programs Just runs once(Creating SimonGame) 0 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