using UnityEngine;
using System.Collections;

public class Test : MonoBehaviour {

    string userId = "986633361362932"; // Facebook 用戶 ID

    IEnumerator Start () {
        WWW www = new WWW("https://graph.facebook.com/" + userId + "/picture?type=large");
        yield return www;
        renderer.material.mainTexture = www.texture;
    }

}

執行結果:

Unity - A.unity - New Unity Project 2 - Android DX11 on DX9 GPU  







arrow
arrow
    全站熱搜

    黃彥霖 發表在 痞客邦 留言(0) 人氣()