CompressTexture() private static method

private static CompressTexture ( Texture2D texture, TextureFormat format ) : void
texture UnityEngine.Texture2D
format TextureFormat
return void
Example #1
0
 private static void CompressTexture(Texture2D texture, TextureFormat format)
 {
     EditorUtility.CompressTexture(texture, format, TextureCompressionQuality.Normal);
 }
Example #2
0
 /// <summary>
 ///   <para>Compress a texture.</para>
 /// </summary>
 /// <param name="texture"></param>
 /// <param name="format"></param>
 /// <param name="quality"></param>
 public static void CompressTexture(Texture2D texture, TextureFormat format, TextureCompressionQuality quality)
 {
     EditorUtility.CompressTexture(texture, format, (int)quality);
 }