上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 24 下一页
摘要: 参考:http://www.runoob.com/lua/lua-metatables.html 码云上的相关工程:https://gitee.com/luguoshuai/LearnLua 阅读全文
posted @ 2018-06-24 22:59 小·糊涂仙 阅读(180) 评论(0) 推荐(0)
摘要: 定义了两个文件: Module.lua 和 main.lua 其中,模块的概念,使得Lua工程有了程序主入口的概念,其中main.lua就是用来充当程序主入口的。 工程截图如下: Module.lua中代码: main.lua中代码: 参考:http://www.runoob.com/lua/lua 阅读全文
posted @ 2018-06-24 10:53 小·糊涂仙 阅读(309) 评论(0) 推荐(0)
摘要: 以下为table的补充内容: table.insert(t, pos, value) 在t指定位置插入元素table.insert(t, value) 在t末尾插入元素 table.remove(t, pos) 在t指定位置删除元素,并返回删除的元素table.remove(t) 在t末尾删除元素, 阅读全文
posted @ 2018-06-24 02:09 小·糊涂仙 阅读(320) 评论(0) 推荐(0)
摘要: 参考:http://www.runoob.com/lua/lua-arrays.html 码云上的相关工程:https://gitee.com/luguoshuai/LearnLua 阅读全文
posted @ 2018-06-24 00:42 小·糊涂仙 阅读(367) 评论(0) 推荐(0)
摘要: 参考: http://www.runoob.com/lua/lua-strings.html 码云上的相关工程:https://gitee.com/luguoshuai/LearnLua 阅读全文
posted @ 2018-06-23 22:00 小·糊涂仙 阅读(259) 评论(0) 推荐(0)
摘要: using UnityEngine; public class LogPrintf { static LogLevel logLevel = LogLevel.LOG_LEVEL_ERROR; public static void SetLogLevel(LogLevel _loglevel) { logLevel = _loglevel; }... 阅读全文
posted @ 2018-06-19 14:14 小·糊涂仙 阅读(249) 评论(0) 推荐(0)
摘要: 1、动画: 2、骨骼: 就是一些 Transform 组件,没有其他组件,它们会根据动画的要求而进行运动。 3、皮肤: 其上的 SkinnedMeshRenderer 关联了 网格、骨骼、材质 三个组件。因此,在做人物换装的功能的时候,只需要更改以上三个部件即可。 阅读全文
posted @ 2018-06-15 17:30 小·糊涂仙 阅读(1548) 评论(0) 推荐(0)
摘要: 我的Unity版本是2017.2.0p4(64-bit) StartCoroutine的两个版本: StartCoroutine(string methodName) StartCoroutine(IEnumerator routine) 协成终止的三个版本: StopCoroutine(strin 阅读全文
posted @ 2018-06-14 11:15 小·糊涂仙 阅读(652) 评论(0) 推荐(0)
摘要: 判断该对象及其子对象上是否有SkinnedMeshRenderer组价即可 阅读全文
posted @ 2018-06-09 15:42 小·糊涂仙 阅读(170) 评论(0) 推荐(0)
摘要: using System; using System.Text.RegularExpressions; namespace Test { class Program { //匹配16进制颜色代码的正则模式 const string pattern = @"\[[0-9a-fA-F]{6}\]"; const string tes... 阅读全文
posted @ 2018-06-07 15:37 小·糊涂仙 阅读(402) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 24 下一页