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

Question Sprites can not be generated from textures with NPOT scaling

Discussion in 'Editor & General Support' started by andyz, Oct 9, 2020.

  1. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,132
    After converting from 2018 to 2019 LTS I get these editor warnings about sprite generation.
    It does not tell me which textures (unhelpful on large project)
    It does not tell me if this is a major issue or what it has done about it!
    Also when did sprites start requiring square sizes?

    Any suggestions?

    Code (CSharp):
    1.  
    2. Sprites can not be generated from textures with NPOT scaling.
    3. UnityEditor.PlayerSettingsEditor:AddGraphicsDeviceMenuSelected(Object, String[], Int32)
    4.  
     
  2. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,132
    still get... happened for android
     
  3. andyz

    andyz

    Joined:
    Jan 5, 2010
    Posts:
    2,132
    still... did it get better in 2021? this is 2019 due to long standing bug!
     
  4. Liminal-Ridges

    Liminal-Ridges

    Joined:
    Oct 21, 2015
    Posts:
    255
    any updates?
     
  5. JindoBlu

    JindoBlu

    Joined:
    Mar 19, 2014
    Posts:
    22
    Having the same issue on Unity 2022.3.7, I solved this way:
    • Switch the "Texture Type" to Default
    • Hit apply
    • Switch back to "Sprite (2D and UI)"
    • Apply again.
    Of course it only works if you know which texture is throwing the warning...

    upload_2023-9-3_8-36-16.png
     

    Attached Files:

    Last edited: Sep 3, 2023