摘要: package.path = package.path .. ";G:/luafiles/?.lua" --lua文件搜索路径 package.cpath = package.cpath .. "G:/dllfiles/?.dll" --dll文件搜索路径 阅读全文
posted @ 2022-03-09 23:40 yanghui01 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 【主要用途】 # 编写gui代码时,会经常用设置Text的文本,设置Image的图片,注册按钮点击,禁用按钮点击这样的操作。 把这些控件绑定到Behaviour上,便于代码访问;减少硬编码去Find控件,硬编码的方式不好的地方在于,界面结构的一旦变化就需要改对应的Find代码,外一忘记就有问题了。 阅读全文
posted @ 2022-03-09 23:33 yanghui01 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1 #if UNITY_EDITOR 2 3 using System.Collections.Generic; 4 using System.Reflection; 5 using UnityEditor; 6 using UnityEngine; 7 8 [CustomEditor(typeof 阅读全文
posted @ 2022-03-09 23:07 yanghui01 阅读(78) 评论(0) 推荐(0) 编辑