【发布时间】:2013-11-03 18:32:35
【问题描述】:
我正在尝试使用此获取游戏用户的个人资料图片-
void MyPictureCallback(FBResult result) // store user profile pic
{
if (FB.IsLoggedIn)
{
WWW url = new WWW("http" + "://graph.facebook.com/" + FB.UserId + "/picture");
Texture2D textFb2 = new Texture2D(128, 128, TextureFormat.ARGB32, false); //TextureFormat must be DXT5
url.LoadImageIntoTexture(textFb2);
profilePic.renderer.material.mainTexture = textFb2;
}
但它不起作用。我没有收到任何错误。
【问题讨论】:
-
我得到了一张图片,但图片乱码。
标签: android unity3d facebook-unity-sdk