Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

WARNING: XXXXXXXXX format is not supported, decompressing texture

Discussion in 'Editor & General Support' started by wicea, Dec 4, 2017.

  1. wicea

    wicea

    Joined:
    Jan 23, 2016
    Posts:
    18
    Hi. I'm recently detected in build logs (cloud build and local build) strange warnings. After a some research I realised that these warnings appears on sprites with enabled compression.

    For example:
    RGB png file
    "Texture type" - Sprite (2D and UI)
    "Compression (Default)" - Normal Quality, Format Auto.

    When I'm building project for Android or iOS (Mac OSX or Windows builds doesn't have such wanings) I'm receiving every time warnings on files with these settings.
    And numbers always different. I created test script, attached to gameobject with SpriteRenderer component. After running build on iOS device I had seen in logs that texture is compressed - "PVRTC_RGB4".

    Code (CSharp):
    1. public class Test : MonoBehaviour
    2. {
    3.     private void Start()
    4.     {
    5.         var spr = GetComponent<SpriteRenderer>();
    6.         Debug.Log(">>>>> " + spr.sprite.texture.format);
    7.     }
    8. }
    For files with "Texture Type: Default" and compression I'm not receiving any warnings.

    So, could anybody explain me what does these warnings means? And should I care about them? How handle with them?

    Unity 2017.1.1f1
     

    Attached Files:

  2. JeroenDG

    JeroenDG

    Joined:
    Oct 16, 2017
    Posts:
    5
    Did you find any solutions regarding this matter?
     
  3. wicea

    wicea

    Joined:
    Jan 23, 2016
    Posts:
    18
    Nope... I have stopped temporarily my research of this problem.
     
  4. JesterGameCraft

    JesterGameCraft

    Joined:
    Feb 26, 2013
    Posts:
    447
    From what I was able to find, it happens if you have files (textures) that are not compatible with compression format for the target you're compiling against.