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. Dismiss Notice

Texture rectangle is out of bounds

Discussion in '2D' started by castor76, Nov 24, 2020.

  1. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,511
    I am using Atlas v1 and when I use API to repack bunch of atlases or let Addressable to build, I get :

    Texture rectangle is out of bounds (59 + 7 > 64)
    UnityEditor.GenericMenu:CatchMenu (object,string[],int)

    But because I have so many Atlases, I have no idea which one is causing this error. The error message should at least attach a name of the atlas it is giving error from so I can take a look at that.

    Is there any way to find it out ?
     
  2. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,511
    Any idea? This is annoying and I can't figure out which sprite is causing this. Can error message be better?
     
  3. castor76

    castor76

    Joined:
    Dec 5, 2011
    Posts:
    2,511
    I also get :

    Invalid texture format: 48
    UnityEditor.GenericMenu:CatchMenu (object,string[],int)

    For Switch platform... Also not a very good helping error message. Please consider adding more information on what is actually causing the error..
     
    masatokodo and ynaoto like this.
  4. ynaoto

    ynaoto

    Joined:
    Mar 26, 2016
    Posts:
    21
    I am getting "Invalid texture format: 48" too.
     
  5. sameng

    sameng

    Joined:
    Oct 1, 2014
    Posts:
    172
    I'm also getting this error for Invalid Texture Format 48. At least a name of the asset would really help...
     
    ynaoto likes this.
  6. sameng

    sameng

    Joined:
    Oct 1, 2014
    Posts:
    172
    Found the error for 48 and submitted a repro.
    For anyone else who runs into Invalid Texture Format 48:

    Change your texture from Compression: High Quality to Compression: Normal Quality.

    I reproduced it in a super minimal project with a simple png. Only happens on Switch build target.