2015-10-07 79 views

回答

0

我發現它的解決方案:

  • 添加using UnityEngine; Texture2D Texture { get; }到IGraphResult.cs
  • 添加public Texture2D Texture { get; private set; }到GraphResult.cs
  • 添加this.Texture;到GraphResult構造函數GraphResult.cs

現在,您可以從IGraphResult獲取紋理

實施例:

void GetAvatar(IGraphResult result){ ... result.Texture ... } 
+0

你確定它有效嗎? –

+0

確實有效!但我認爲這不是一個好方法。 – findujanvier

0

此被固定在latest version of the SDK。只需使用IGraphResult中的Texture字段即可。

FB.API("/me/picture", HttpMethod.GET, delegate(IGraphResult result) { 
    if (result.Texture != null) { 
    // use texture 
    } 
});