Version: 2023.2
언어: 한국어
Method group is Obsolete

WWW.textureNonReadable

매뉴얼로 전환
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.

Additional resources: 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 = "https://images.earthcam.com/ec_metros/ourcams/fridays.jpg"; 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; } } }