Outline

The Outline component simulates an outline around the graphic by creating four shadows around it at specified distances.

The Outline will create two shadows to the left and right of the original graphic based on Effect Distance X and two shadows to the top and bottom of the original graphic based on Effect Distance Y. Unlike the Shadow component, there is no difference in a negative or positive value for these two distances, because the two shadows created for each axis are mirrored.

Setting the Effect Distance X to -3 essentially just switches the positions of the two horizontal shadows, but the effect looks exactly the same, as shown ...

Get Mastering UI Development with Unity now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.