摘要:
1.简单记录一下,不喜勿喷 首先下载DoTween插件 直接上代码,代码不多,好几个动画放一起,一起播放 using System.Collections; using System.Collections.Generic; using UnityEngine; using DG.Tweening; 阅读全文
摘要:
1.把脚本挂在text上调节颜色即可,废话不多说,直接上 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; /// <summary> /// ** 阅读全文
摘要:
1.字典的类型 public class userscore { public List<string> fen; //分数 public List<string> time; //时间 } public Dictionary<string, userscore> DicScore = new Di 阅读全文
摘要:
1.API GetSiblingIndex(); Gets the sibling index 直接挂到 四个按钮上 即可看到每一个按钮的索引 (也就是Canvas下面有几个子物体 索引从0开始) 代码: using System.Collections; using System.Collecti 阅读全文
摘要:
代码挂在Text即可 第一种 在一行显示的字间距(换行会没有效果) using UnityEngine; using System.Collections; using UnityEngine.UI; using System; using System.Collections.Generic; / 阅读全文
摘要:
代码如下: using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// Unity 物体旋转到固定角度 /// </summary> public class Rot 阅读全文