A downloadable C# Script

Download NowName your own price

A simple C# script to add an outline to your sprites. This can be useful for making your characters and other sprites have a more defined shape from the rest of your environment. The outline appears and changes shape in real time as the sprite you are outlining changes, both in the editor and in playmode.


HOW TO USE

- Import the script into your Unity project.

- Be sure all textures you are outlining have "Read/Write Enabled" on in their import settings.

-  Right-click on the sprite you want to outline, then select "2D Object > Sprite" to create a new sprite as a child.

- Rename this sprite to "Outline".

- Attatch the outline script to the new sprite, and drag and drop the parent as the "Renderer To Outline" variable.

- Set the color of the outline.

- Enjoy!


LINKS

Make a donation, amount of your choosing!

https://paypal.me/copaardvarkdonation?locale.x=en_US

Support me on Patreon

https://www.patreon.com/copperaardvarkgames

LudumDare account page:

https://ldjam.com/users/copper-aardvark-games/

Procedural Dungeon Generator for Unity:

https://copper-aardvark-games.itch.io/procedural-dungeon-generator

Pixel Perfect Camera for Unity:

https://copper-aardvark-games.itch.io/pixel-perfect-camera

My LudumDare 44 Entry:

https://copper-aardvark-games.itch.io/kill-the-money-demo

Problems, questions, comments, contact me:

Via email: thatcopperaardvark@gmail.com

Via SMS: 830-446-0760

Download

Download NowName your own price

Click download now to get access to the following files:

Outline.cs 5 kB

Leave a comment

Log in with itch.io to leave a comment.