Example #1
0
    void GetImageAndSetTexture(char paramChar)
    {
        string   urlString = "http://localhost:5000/get/image/content?p=" + paramChar;
        GetImage script    = gameObject.GetComponent <GetImage>();

        script.ImageMyGet(urlString, delegate(Texture2D answerTexture) {
            planeObject.GetComponent <Renderer>().material.mainTexture = answerTexture;
            planeObject.GetComponent <Renderer>().material.color       = Color.white;
        });
    }