2D Toolkit Forum

2D Toolkit => Support => Topic started by: DarkSlash on February 12, 2015, 06:28:17 pm

Title: Sprite with border
Post by: DarkSlash 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.
Title: Re: Sprite with border
Post by: unikronsoftware 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.