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

本文详细介绍了Unity中Shadow组件的功能及使用方法。Shadow组件能够为Text或Image等图形组件添加简单的轮廓效果,通过调整颜色、偏移量等属性实现不同的视觉效果。

Shadow

 阴影

The Shadow 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.

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

Text with no effect. Text with Shadow effect.

Properties

属性

 

Property:Function:
Effect ColorThe color of the shadow.
Effect DistanceThe offset of the shadow expressed as a vector.
Use Graphic AlphaMultiplies the color of the graphic onto the color of the effect.

属性功能
Effect Color阴影的颜色
Effect Distance阴影的偏移量表示为一个向量
Use Graphic Alpha字面的翻译不太对,看了源码,其实就是阴影的透明度要不要乘一下原图的透明度(只和alpha的值有关,这个选项不会影响rgb的值)

转载于:https://www.cnblogs.com/SolarWings/p/8182960.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值