EditorUtility.CompressTexture Manual     Reference     Scripting  
Scripting > Editor Classes > EditorUtility
EditorUtility.CompressTexture

static function CompressTexture (texture : Texture2D, format : TextureFormat) : void

Description

Compress a texture.

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

If you want to do texture compression in-game, use Texture2D.Compress function, which will use faster but lower quality DXT compression.