上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页
摘要: public class L17 : MonoBehaviour { // Start is called before the first frame update void Start() { //NGUI缓动 - 让控件交互时进行缩放,透明,位置,角度变化等 //通过NGUI自带的Tween功 阅读全文
posted @ 2025-03-24 11:44 cannedmint 阅读(6) 评论(0) 推荐(0)
摘要: public class L16 : MonoBehaviour { // Start is called before the first frame update void Start() { //NGUI字体 - 降低DrawCall和自定义美术字体 //制作NGUI字体 //NGUI内部提供 阅读全文
posted @ 2025-03-24 11:13 cannedmint 阅读(9) 评论(0) 推荐(0)
摘要: public class L15 : MonoBehaviour { // Start is called before the first frame update void Start() { //DrawCall - CPU准备好渲染数据通知GPU进行渲染 //降低DrawCall //UI层 阅读全文
posted @ 2025-03-24 10:47 cannedmint 阅读(9) 评论(0) 推荐(0)
摘要: public class L14 : MonoBehaviour { public UISprite A; public UISprite B; // Start is called before the first frame update void Start() { //控件自带事件的局限性 阅读全文
posted @ 2025-03-24 10:01 cannedmint 阅读(17) 评论(0) 推荐(0)
摘要: public class L13 : MonoBehaviour { // Start is called before the first frame update void Start() { //Anchor是用于九宫格布局的锚点 //1.老版本-锚点组件用于控制对象对齐方式 //2.新版本- 阅读全文
posted @ 2025-03-24 09:09 cannedmint 阅读(9) 评论(0) 推荐(0)
摘要: public class L12 : MonoBehaviour { public UIScrollView sv; // Start is called before the first frame update void Start() { //ScrollView - 滚动视图 //一般用于背 阅读全文
posted @ 2025-03-23 19:58 cannedmint 阅读(44) 评论(0) 推荐(0)
摘要: public class L11 : MonoBehaviour { // Start is called before the first frame update void Start() { //progressbar 进度条一般不用 一般直接使用Sprite的Type里的Filled实现进度 阅读全文
posted @ 2025-03-23 17:47 cannedmint 阅读(7) 评论(0) 推荐(0)
摘要: public class L10 : MonoBehaviour { public UISlider slider; // Start is called before the first frame update void Start() { //制作Slider //1.由三个Sprite组成, 阅读全文
posted @ 2025-03-23 17:22 cannedmint 阅读(13) 评论(0) 推荐(0)
摘要: void Start() { //制作Input //1.1个Sprite做背景 1个Label显示文字 //2.为Sprite添加Input脚本 //3.添加碰撞器 //4.在Input组件里关联Label组件 //相关参数 //Start Value - 开始默认显示的内容 //Input Ty 阅读全文
posted @ 2025-03-23 16:29 cannedmint 阅读(11) 评论(0) 推荐(0)
摘要: public class L9 : MonoBehaviour { public UIPopupList list; // Start is called before the first frame update void Start() { //PopupList-下拉列表 //制作PopupL 阅读全文
posted @ 2025-03-23 16:29 cannedmint 阅读(18) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页