08 2017 档案

摘要:原文地址:http://lua-users.org/wiki/StringTrim 阅读全文
posted @ 2017-08-25 19:17 AaronBlogs 阅读(9501) 评论(0) 推荐(0) 编辑
摘要:链接: http://www.xuanyusong.com/archives/3325 阅读全文
posted @ 2017-08-25 17:24 AaronBlogs 阅读(410) 评论(0) 推荐(0) 编辑
摘要:比如一些不规则按钮最好可以设置它的响应区域。如下图所示,用Polygon Collider2D组件圈出精灵响应事件的区域。 注意 IsRaycastLocationValid 的判断区域是RectTransform的区域。 如果 polygon Collider编辑出来的区域大于RectTransf 阅读全文
posted @ 2017-08-25 17:16 AaronBlogs 阅读(1065) 评论(0) 推荐(0) 编辑
摘要:1、大部分SDK的方法需要在线程中执行,一般会放在主线程里执行,安卓中主线程一般用于UI渲染。 this.runOnUiThread(new Runnable() { @Override public void run() { // TODO Auto-generated method stub } 阅读全文
posted @ 2017-08-25 17:13 AaronBlogs 阅读(784) 评论(0) 推荐(0) 编辑
摘要:http://www.aisharing.com/ 阅读全文
posted @ 2017-08-25 17:10 AaronBlogs 阅读(152) 评论(0) 推荐(0) 编辑
摘要:1.改变RectTransform的top GetComponent<RectTransform>().offsetMax = new Vector2(GetComponent<RectTransform>().offsetMax.x, top); 2.改变RectTransform的bottom 阅读全文
posted @ 2017-08-25 17:06 AaronBlogs 阅读(2148) 评论(0) 推荐(0) 编辑
摘要:1. string库中所有的字符索引从前往后是1,2,...;从后往前是-1,-2,...2. string库中所有的function都不会直接操作字符串,而是返回一个结果 string.byte(string [,pos]):返回第pos个字符的整数表示形式.如a为97. string.char( 阅读全文
posted @ 2017-08-25 17:05 AaronBlogs 阅读(1605) 评论(0) 推荐(0) 编辑
摘要:贴一段匹配中英文混合输入的代码 阅读全文
posted @ 2017-08-25 17:04 AaronBlogs 阅读(7813) 评论(0) 推荐(1) 编辑
摘要:Lua模式匹配 模式匹配函数在string库中功能最强大的函数是:string.find(字符串查找)string.gsub(全局字符串替换)string.gfind(全局字符串查找)string.gmatch(返回查找到字符串的迭代器)这些函数都是基于模式匹配的。与其他脚本语言不同的是,Lua并不 阅读全文
posted @ 2017-08-25 16:54 AaronBlogs 阅读(290) 评论(0) 推荐(0) 编辑
摘要:我们知道lua中可以用".."连接字符串,可以起到一部分格式化字符串的作用,但是如果字符串较长或者有特殊的格式转换操作(如十六进制转换),用".."就会很繁琐且可读性差。用string.format()就是一个很好的解决方案。函数定义
string.format() 第一个参数为字符串格式,后面的参 阅读全文
posted @ 2017-08-25 16:39 AaronBlogs 阅读(12020) 评论(0) 推荐(0) 编辑
摘要:参考链接: https://candycat1992.github.io/ https://chengkehan.github.io/FakeLighting.html 阅读全文
posted @ 2017-08-25 16:36 AaronBlogs 阅读(154) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/landeanfen/p/4642814.html http://blog.csdn.net/lianjiangwei/article/details/47207875 http://blog.csdn.net/xiaouncle/article/det 阅读全文
posted @ 2017-08-11 17:52 AaronBlogs 阅读(164) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/rohelm/archive/2012/04/19/2456088.html http://www.cnblogs.com/liuxinxin/articles/2265672.html http://www.runoob.com/csharp/csha 阅读全文
posted @ 2017-08-11 16:52 AaronBlogs 阅读(179) 评论(0) 推荐(0) 编辑
摘要:1) async / await 使用 async / await 模式,可以在执行代码块操作的时候不会阻塞 UI 或者当前的线程。即使该操作被某些执行动作延迟了(比如一个 web 请求),async / await 模式也会继续执行后续的代码。 更多关于 async / await 模式的内容,请 阅读全文
posted @ 2017-08-11 16:29 AaronBlogs 阅读(194) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/luxishi/p/6743842.html http://www.jianshu.com/p/c24e60ec9124 阅读全文
posted @ 2017-08-11 16:11 AaronBlogs 阅读(111) 评论(0) 推荐(0) 编辑
摘要:https://blog.uwa4d.com/archives/fillrate.html http://blog.csdn.net/candycat1992/article/details/42127811 https://www.codeandweb.com/blog/2014/03/28/us 阅读全文
posted @ 2017-08-11 16:08 AaronBlogs 阅读(174) 评论(0) 推荐(0) 编辑
摘要:原文链接:http://www.xuanyusong.com/archives/3893 阅读全文
posted @ 2017-08-10 19:12 AaronBlogs 阅读(754) 评论(0) 推荐(0) 编辑
摘要:说明: 阅读全文
posted @ 2017-08-10 17:48 AaronBlogs 阅读(309) 评论(0) 推荐(0) 编辑