Search Unity

Automate Sprite Editor: Custom Outline, through Script?

Discussion in '2D' started by Greganator1, Feb 12, 2020.

  1. Greganator1


    Aug 6, 2019
    Hi there, I have been working On a mobile game for a while now, and it has alot of sprite assets in it, and I have been looking for various ways to reduce the size of the packed sprite atlas's, And noticed that the custom outline feature of the sprite editor and sprite atlas Tight packing, would allow these sprites to be packed closer together. How ever non of the sprites in this project have any custom Outlines and it would take far to long to add outlines to all of them, so my question is, Is it at all possible to Automate? And if so would anyone have any ideas where to start?
  2. Lo-renzo


    Apr 8, 2018
    CustomOutline has a Generate button. This is an imperfect tool, but it can help. For some artwork, it may create overly complex shapes. I'm not aware of a way to automate the pressing of that button from script, but you might not want that anyway because you need to quality-check its output most of the time in my experience.