Version: 2023.2
언어: 한국어

EditorUtility.CompressCubemapTexture

매뉴얼로 전환
public static void CompressCubemapTexture (Cubemap texture, TextureFormat format, int quality);
public static void CompressCubemapTexture (Cubemap texture, TextureFormat format, TextureCompressionQuality quality);

설명

Compress a cubemap texture.

Use this function to explicitly compress a cube map texture into specified format.

using UnityEngine;
using UnityEditor;

public class CompressCubemapTextureExample : AssetPostprocessor { // Automatically Compress all imported cube map textures to the project to RGB24 void OnPostprocessTexture(Cubemap t) { EditorUtility.CompressCubemapTexture(t, TextureFormat.RGB24, TextureCompressionQuality.Normal); } }