1、Canvas 的 Render Mode 一共有三种模式 Screen Space – overlay 此模式不需要UI摄像机,UI将永远出现在所有摄像机的最前面,如果想在UI前面放一个特效或者UI会很麻烦。 Screen Space- Camera 它需要提供一个UICamera,和NGUI的 ...
分类:
其他好文 时间:
2017-12-05 11:56:50
阅读次数:
187
using UnityEngine; using System.Collections.Generic; using DG.Tweening; using UnityEngine.EventSystems; using UnityEngine.UI; public class testUI : Mo... ...
分类:
编程语言 时间:
2017-12-02 12:56:59
阅读次数:
188
Rich Text 富文本 The text for UI elements and text meshes can incorporate multiple font styles and sizes. Rich text is supported both for the UI System a ...
分类:
编程语言 时间:
2017-11-28 11:48:05
阅读次数:
288
Canvas Scaler: 这是一个理解起来相当繁琐复杂的一个组件,但又是一个至关重要的组件,不彻底了解它,可以说对UGUI的布局和所谓的“自适应”就没有一个完整的认识。 Canvas Scale指的是UI Canvas整体的缩放比例,这个值在Canvas 的Render Mode为 Screen ...
分类:
其他好文 时间:
2017-11-14 16:29:10
阅读次数:
159
Animation Integration 动画集成 Animation allows for each transition between control states to be fully animated using Unity’s animation system. This is th ...
分类:
编程语言 时间:
2017-11-11 20:42:08
阅读次数:
379
Interaction Components 交互组件 This section covers components in the UI system that handles interaction, such as mouse or touch events and interaction us ...
分类:
编程语言 时间:
2017-11-11 18:58:07
阅读次数:
319
1.新建一个UGUI的Image. 2.新建一个脚本wwwTest.cs: 3.把wwwTest.cs拖到相机上,再把Image游戏对象拖到相机的wwwTest.cs脚本上. 4.运行. ...
分类:
编程语言 时间:
2017-11-08 11:48:46
阅读次数:
1254
添加字体: 把下载好的字体拖拽到Project面板中 - 点击Text组件中Text属性后面的圆点 - 选择刚刚拖拽的字体即可。 创建ToggleGroup(开关组): 1.在Canvas下创建两个Toggle 2.在Canvas下创建一个空物体(命名为ToggleGroup),给ToggleGro ...
分类:
编程语言 时间:
2017-11-07 14:31:07
阅读次数:
211
http://blog.sina.com.cn/s/blog_e82e8c390102wh2z.html 实现方法:通过Image组件中Image Type属性中Fill Amount,通过代码改变Fill Amount的值就可以实现进度条效果 首先在Hierarchy中创建UI>Image,调整I ...
分类:
编程语言 时间:
2017-11-07 01:28:08
阅读次数:
222
了解UGUI组件的搭建方式,有助于搭建我们自己的UI界面。 Text 文本 text 是UGUI中的基本控件,在Hierarchyi面板创建一个空物体 - 给这个空物体添加一个Text组件即可实现与text空间相同的功能。 Image 图像 Image 是UGUI中的基本控件,在Hierarchyi ...
分类:
编程语言 时间:
2017-11-06 21:29:08
阅读次数:
211