Unity3d Ugui 5 Text

25 篇文章 1 订阅

Character:字符
1、Font:字体
2、Font Style:
(1)Normal:正常
(2)Bold:粗体
(3)Italic:斜体
(4)Bold And Italic:粗体+斜体
3、Font Size:字体大小
4、Line Spacing:行间距(注:Text组件没有提供修改字间距的属性,在前面写过修改字间距的脚本)
5、Rich Text:富文本

        b 加粗    <b>显示文字</b>
        i 斜体    <i>显示文字</i>
        size设置字体大小    <size=50>显示文字</size>
        color设置字体颜色    <color=#fff>显示文字</color> <color=red>显示文字</color>
Paragraph:段落

1、Alignment:
水平方向(左对齐、居中、右对齐),垂直方向(上对齐,居中,下对齐)

2、Align By Geometry:使用字形几何的范围来执行水平对齐

3、Horizontal Overflow:水平溢出
(1)Wrap:水平超过宽度时将自动换行
(2)Overflow:水平超过宽度时会超出边界,继续显示
4、Vertical Overflow:垂直溢出
(1)Truncate:垂直超过高度时会截取掉不显示
(2)Overflow:垂直超过高度时会超出垂直边界,继续显示
5、Best Fit:勾选之后,编辑器发生变化,显示Min Size和Max Size
(1)Min Size:最小大小
(2)Max Size:最大大小
当边框很大时,文字最大显示Max Size字体大小;当边框很小时,文字最小显示Min Size字体大小,边框显示不了MinSize字体大小就不再显示文字了。

Color:颜色

Material:材质

Raycast Target:是否接受射线检测,当该项为false时,消息会透传

Raycast Padding:射线检测的偏移值

Maskable:受不受Mask的影响

通过text属性获取和设置显示的文字

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
Unity3D UGUI 专用文字特效插件 Text Effects 1.15 UI Text Effects are a set of effects for the standard Unity UI (uGUI) Text. - All script and shader sources included! - Extremely easy to use - just choose the effect from the component menu, and it's applied. - Add fancy titles, custom text appearance, mix multiple effects. - Rich Text support. - Mobile platform support. 12 extremely valuable effects: - Better Outline: a more continuous outline than the standard one. - Gradient Color: global/local, vertical/horizontal, override/additive/multiply. - Depth Effect: add thickness to text. - Soft Shadow: blurry shadow. - Outer Bevel: add outer lit and shaded edges. - Skew Effect: add horizontal+vertical transformations and perspective. - Curve Effect: bend or distort text vertically. - Character Spacing: increase or decrease the distance between individual characters. - Limit Visible Characters: hide characters, make a typewriter. - Overlay Texture: add an image overlay, local/global, override/additive/multiply. - Inner Bevel: add lit and shaded edges inside the characters, override/additive/multiply (only "override" on SM2 level GPUs). - Inner Outline: add outline inside the characters, override/additive/multiply. - With this package, you can finally echo effects from Photoshop or Word, while still using the standard Unity UI Text. - Suggestions for new effects are very welcome. The newly made effects will be added to the package. 仅供学习交流使用,如有侵权请告知删除。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值