- Home /
Question by
celebrityapps · Oct 17, 2016 at 07:24 AM ·
c#unity 5google play games
Load local user image from play game services
Load Social.localUser.image from play game services always return null. How to get image url or load local user image from play game services?
Comment
Answer by MadCodder · Jun 14, 2017 at 04:11 PM
Social.localUser.image from play game services load image asynchronous. You have to wait until image is loaded
IEnumerator LoadImage() {
while (Social.localUser.image == null)
{
Debug.Log("IMAGE NOT FOUND");
yield return null;
}
Debug.Log("Image Found");
//Social.localUser.image is not null any more
}
Your answer
Follow this Question
Related Questions
Google Play Service LogIn Problem 0 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Load Google Play Popup during Unity startup on Android? 1 Answer
A real head-scratcher 0 Answers