上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页
摘要: 官方文档: https://docs.unity3d.com/Manual/PlatformDependentCompilation.html 阅读全文
posted @ 2018-07-17 20:34 朋丶Peng 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 新建脚本: 挂到一个游戏对象上: 在脚本的右边有一个小齿轮: 点击小齿轮就会出现上下文菜单,菜单里面就会有"哈哈", 点击哈哈,就会运行脚本中被[ContextMenu("哈哈")]修饰的那个方法. 阅读全文
posted @ 2018-07-17 20:29 朋丶Peng 阅读(943) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-07-06 19:07 朋丶Peng 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-07-06 15:42 朋丶Peng 阅读(1) 评论(0) 推荐(0) 编辑
摘要: a==b 为true,这个表达式返回c; a==b为false,这个表达式返回d. 相当于: if(a == b) { return c; } else { return d; } 阅读全文
posted @ 2018-07-06 15:33 朋丶Peng 阅读(3322) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-07-06 15:23 朋丶Peng 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 可以自己在Unity里面试一下 游戏对象在Hierarchy面板不是激活的,它的脚本没作用,脚本中的函数不会执行; 游戏对象在Hierarchy面板是激活的,脚本没激活,Awake会执行,OnEnable和Start不会执行; 同一脚本执行顺序 :Awake,OnEnable,Start 不同脚本间 阅读全文
posted @ 2018-07-05 18:25 朋丶Peng 阅读(785) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-06-29 18:19 朋丶Peng 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-06-29 18:13 朋丶Peng 阅读(171) 评论(0) 推荐(0) 编辑
摘要: public Button button; void Start() { ColorBlock cb = new ColorBlock(); cb.normalColor = Color.red; cb.highlightedColor = Color.green; cb.pressedColor = Color.blue; ... 阅读全文
posted @ 2018-06-29 18:09 朋丶Peng 阅读(899) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页