原本以為沒有的功能,
其實只要加個組件就有了,
這對浮動的UI文字很有幫助,
不如說沒有邊框的話很多時候會被地圖之類的東西給模糊掉,
有邊框的話就很清楚了。
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 with no effect.](https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/images/UI_TextExample.png)
![Text with Outline effect.](https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/images/UI_OutlineExample.png)
![](https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/images/UI_OutlineInspector.png)
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. |
沒有留言:
張貼留言
Love the Lord your God with all your heart and with all your soul and with all your mind.
耶 穌 對 他 說 : 你 要 盡 心 、 盡 性 、 盡 意 愛 主 ─ 你 的 神 。
—— Matthew 22:37 —— 馬 太 福 音 22:37