Unity2017.1官方UGUI文档翻译——Outline

Outline

 描边

The Outline component adds a simple outline effect to graphic components such as Text or Image. It must be on the same GameObject as the graphic component.

描边组件为图形组件(比如Text和Image)添加了一个简单的描边(轮廓)效果。它必须与图形组件在同一个GameObject上

Text with no effect. Text with Outline effect.

Properties

属性

Property:Function:
Effect Color The color of the outline.
Effect Distance The distance of the outline effect horizontally and vertically.
Use Graphic Alpha Multiplies the color of the graphic onto the color of the effect.

属性功能
Effect Color 描边的颜色
Effect Distance

描边效果在水平方向和垂直方向的距离(可以这么理解,描边就是复制了4份原图,然后按照距离在原图背后一定偏移的位置显示)

Use Graphic Alpha 和前面讲的Shadow一样,表示描边的透明度要不要乘一下原图的透明度

原文地址:https://www.cnblogs.com/SolarWings/p/8182963.html