PowenKo, Unity Tutorial 150 , internet, display internet image

August 31, 2011   ·   0 Comments

using UnityEngine;
using System.Collections;

public class internetSample01 : MonoBehaviour {

 public string url = "http://images.earthcam.com/ec_metros/ourcams/fridays.jpg";
    IEnumerator Start() {
        WWW www = new WWW(url);
        yield return www;
        renderer.material.mainTexture = www.texture;
    }

	// Update is called once per frame
	void Update () {

	}
}

sample code:
b01_internet

shareShare on FacebookShare on Google+Share on LinkedInEmail this to someonePrint this pageBuffer this pageDigg thisFlattr the authorShare on RedditPin on PinterestShare on StumbleUponShare on TumblrTweet about this on Twitter

By

Tags: , , ,


Readers Comments (0)


You must be logged in to post a comment.

PowenKo’s Online Store

powenko_arduinoBook
Unity3D4

Amazon

adsbygoogle

Recent Posts

Categories

Amazon