Cubemap.format 格式

var format : TextureFormat

Description描述

The format of the pixel data in the texture (Read Only).

在这个纹理像素数据的格式。(只读)

Use this to determine the format of the texture.

使用这个确定纹理的格式。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public Cubemap c;

	public void Awake() {

		if (c != null)

			Debug.Log(c.format);

		else

			Debug.Log("No cubemap was assigned, please assing one on the inspector.");

	}

}
// Print the format of a given cubemap.

//打印给定立方图的格式



var c : Cubemap;

if (c != null)

	Debug.Log(c.format);

else

	Debug.Log("No cubemap was assigned, please assing one on the inspector.");
Page last updated: 2011-3-18