Element Type

Load Method or Component

Code Example

Model

AssetBundle

AssetBundle bundle = www.assetBundle;

GameObject model = bundle.LoadAsset ("Model")

video

VideoPlayer

videoPlayer.url = E:/HLMYYZ/Resouces/Moveis/Ycxqng.mp4;

Audio

AudioClip/www

audioClip = www.GetAudioClip(false);

audioSource.clip = audioClip;

image

Texture2D/Material/www

Texture2D texture = new Texture2D(1, 1);

www.LoadImageIntoTexture(texture);

Material material = new Material (Shader.Find("Standard"));

material.mainTexture = texture;

text

String/www

WWW www = new WWW(textURL;

string textData = www.text;