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

Big black and white sprites compression?

Discussion in 'General Graphics' started by Nirvan, Feb 16, 2015.

  1. Nirvan

    Nirvan

    Joined:
    Nov 16, 2013
    Posts:
    134
    Hi, I making game which will support 1920x1080 resolution and I have 7 black and white .png sprites (32bit alpha) with the same resolution and together have 232kb. When I make standalone game, editor.log file says they have together 83.5MB!!!!! How can I make it smaller? :( It's incredible big.
    I know unity convert it to bitmap that's why it is so big, but I though unity keep it the same compression when putting it in standalone assets.

    Please help.
     
  2. McDev02

    McDev02

    Joined:
    Nov 22, 2010
    Posts:
    661
    Edit. OK, I missed something. You are right, it probably is huge.
    Is it really important to have full-screen images?

    Because resolutions which are not power of two can not be compressed. One thing you can do is to use 2048x1024 textures and use a compression method. This would stretch your image a bit but would also drop the filesize of one texture from ~10 to ~2.7 MB. But this is a common procedure.

    You can either do it by hand or use Unity import settings.
    Therefore use Advanced import options and choose at "Non power of 2" the option "To Nearest".

    If this will screw your image then you have to live with it or find another solution.

    Sounds like no much data. Maybe you can rebuild the screen in Unity? For instance if you just have a few rectangles in the image you use rectangles (planes or sprites) in Unity?
     
    Last edited: Feb 16, 2015
    theANMATOR2b likes this.