Version: 2020.1
Method group is Obsolete


매뉴얼로 전환
Obsolete public Texture2D textureNonReadable ;


Returns a non-readable Texture2D generated from the downloaded data (Read Only).

Same as texture, but marks texture as non-readable, effectively freeing system memory.

See Also: TextureImporter.isReadable.

// Get the latest webcam shot from outside "Friday's" in Times Square

using UnityEngine; using System.Collections;

public class ExampleClass : MonoBehaviour { public string url = ""; IEnumerator Start() { // Start a download of the given URL using (WWW www = new WWW(url)) { // Wait for download to complete yield return www;

// assign texture Renderer renderer = GetComponent<Renderer>(); renderer.material.mainTexture = www.textureNonReadable; } } }