Version: 2020.3
언어: 한국어
public TextureFormat format ;

설명

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

Use this to determine the format of the texture.

using UnityEngine;

public class Example : MonoBehaviour { // Print the format of a given cubemap. public Cubemap cubeMap;

void Start() { if (cubeMap != null) { Debug.Log(cubeMap.format); } else { Debug.Log("No cubemap was assigned, please assing one on the inspector."); } } }