上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页
摘要: public class L7 : MonoBehaviour { // Start is called before the first frame update void Start() { //制作Toggle //1.2个Sprite 一父一子 //2.为父对象添加Toggle脚本 //3. 阅读全文
posted @ 2025-03-23 09:55 cannedmint 阅读(10) 评论(0) 推荐(0)
摘要: public class L6 : MonoBehaviour { public UIButton btnJoin; // Start is called before the first frame update void Start() { //所有组件的共同特点 //在三个基础组件上添加对应控 阅读全文
posted @ 2025-03-22 21:39 cannedmint 阅读(18) 评论(0) 推荐(0)
摘要: public class L5 : MonoBehaviour { public UITexture tex; // Start is called before the first frame update void Start() { //Sprite只能显示图集中图片,一般用于显示中小图片 / 阅读全文
posted @ 2025-03-22 21:11 cannedmint 阅读(8) 评论(0) 推荐(0)
摘要: public class L4 : MonoBehaviour { public UILabel label; // Start is called before the first frame update void Start() { //NGUI中所有文本显示都是用Label显示的 //Lab 阅读全文
posted @ 2025-03-22 20:55 cannedmint 阅读(15) 评论(0) 推荐(0)
摘要: public class L3 : MonoBehaviour { public UISprite sprite; // Start is called before the first frame update void Start() { //Sprite作用 //NGUI中所有中小尺寸图片都用 阅读全文
posted @ 2025-03-22 20:18 cannedmint 阅读(12) 评论(0) 推荐(0)
摘要: public class L2 : MonoBehaviour { // Start is called before the first frame update void Start() { //图集的作用 //NGUI中的最小图片空间Sprite要使用图集中的图片进行显示 //图集就是把很多单 阅读全文
posted @ 2025-03-22 19:40 cannedmint 阅读(16) 评论(0) 推荐(0)
摘要: public class L1_Root : MonoBehaviour { // Start is called before the first frame update void Start() { //分辨率,屏幕宽高两个方向的像素点 //像素即px,是画面中最小的点(单位色块) //屏幕尺 阅读全文
posted @ 2025-03-22 18:19 cannedmint 阅读(39) 评论(0) 推荐(0)
摘要: public class L15 : MonoBehaviour { // Start is called before the first frame update void Start() { //射线检测 //鼠标选择场景上的某一物体 //FPS射击游戏(无弹道,不产生实际的子弹进行移动) / 阅读全文
posted @ 2025-03-22 15:23 cannedmint 阅读(45) 评论(0) 推荐(0)
摘要: public class L14 : MonoBehaviour { // Start is called before the first frame update void Start() { //范围检测 - 游戏中瞬时的攻击范围判断一般会使用范围检测 //比如玩家攻击使前方1米圆形范围内对象 阅读全文
posted @ 2025-03-22 14:32 cannedmint 阅读(29) 评论(0) 推荐(0)
摘要: public class L13 : MonoBehaviour { private Material material; // Start is called before the first frame update void Start() { //LineRenderer是Unity提供的用 阅读全文
posted @ 2025-03-22 13:17 cannedmint 阅读(41) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 18 下一页