Hello Guest

Author Topic: Sprite with border  (Read 3349 times)

DarkSlash

  • Newbie
  • *
  • Posts: 19
    • View Profile
Sprite with border
« on: February 12, 2015, 06:28:17 pm »
I have a Sprite and, In a certain moment, I want to get that sprite with a black border. I think it's something like this: http://docs.unity3d.com/ScriptReference/Sprite-border.html
It can be done? Don't need the border thigh to the mesh (like a toon border) just a square border around the sprite.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite with border
« Reply #1 on: February 13, 2015, 11:58:49 pm »
That doesn't do what you think it does... its simply for effectively a 9-slice sprite that has borders all around that aren't scaled. If you need a square border around a sprite, you can simply create a second sprite using a sliced sprite and resize that to match the sprite size.