Search Unity

How to adjust the sprite size automatically after scaling the original sprite sheet?

Discussion in '2D' started by Bagazi, Jul 21, 2019.

  1. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    611
    When I Scale the sprite sheet,for example,2x, the inner sprite border information seems to be disordered.. Is there some way that could adjust the sprite border automatically? Is there some existing tool in unity or need to be programmed manully?
     
  2. Bagazi

    Bagazi

    Joined:
    Apr 18, 2018
    Posts:
    611
    Idecided to do it myself. I used "Resources.LoadAll" to loaded the sprites like" object[] objs = Resources.LoadAll("Sprites/mapple") ",but when I modify the infomation like "width" ,"height","center" of those separate sprites, how can I re-write the information into the Assets, may be the "meta" file,I guess...