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.
使用这个确定纹理的格式。
C#
JavaScript
using UnityEngine;using System.Collections;public class example : MonoBehaviour {public Cubemap c;public void Awake() {if (c != null)Debug.Log(c.format);elseDebug.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);elseDebug.Log("No cubemap was assigned, please assing one on the inspector.");