上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 24 下一页
摘要: 事情是这样的,我看到了以下的一段代码,才引发了对这个问题的思考。代码如下: 就是看到第 17 行时候,我去查了一下相关资料,引发了对这个问题的思考。 看测试代码: 具体的执行结果,注释中写有,而两者的区别就是: Invoke 是在主线程中执行,BeginInvoke 是另开一个线程执行。 阅读全文
posted @ 2019-05-28 22:45 小·糊涂仙 阅读(2749) 评论(2) 推荐(0)
摘要: 1 using System; 2 using UnityEngine; 3 4 class UILine 5 { 6 GameObject targetObj; 7 LineRenderer lineRenderer; //LineRenderer渲染出的线段的两个端点是3D世界中的点 8 int index = 0; 9 int ... 阅读全文
posted @ 2019-04-29 13:54 小·糊涂仙 阅读(1430) 评论(0) 推荐(0)
摘要: 比如:当前时间到下周二 05:00:00还剩下多少秒? 阅读全文
posted @ 2019-04-28 14:41 小·糊涂仙 阅读(573) 评论(0) 推荐(0)
摘要: 在滑动屏幕的时候,上图中的内容饶圆中心旋转,并且箭头的方向保持不变 每个Item上挂载的脚本: 父结点上挂载的脚本: 阅读全文
posted @ 2019-04-24 19:27 小·糊涂仙 阅读(714) 评论(0) 推荐(0)
摘要: DLL中导出函数的声明有两种方式: 1、在函数声明中加上__declspec(dllexport) 2、采用模块定义(.def) 文件声明,.def文件为链接器提供了有关被链接程序的导出、属性及其他方面的信息。 使用P/Invoke直接调用native C++ Dll里面的函数。(注:此方法只能调用 阅读全文
posted @ 2019-04-24 15:13 小·糊涂仙 阅读(1637) 评论(0) 推荐(0)
摘要: c api 参考手册:http://www.leeon.me/a/lua-c-api-manual 阅读全文
posted @ 2019-04-14 18:52 小·糊涂仙 阅读(457) 评论(0) 推荐(0)
摘要: c-api 参考手册:http://www.leeon.me/a/lua-c-api-manual 阅读全文
posted @ 2019-04-14 18:29 小·糊涂仙 阅读(159) 评论(0) 推荐(0)
摘要: Unity自定义快捷: % - CTRL on Windows / CMD on OSX‘# - Shift’& -AltLEFT/RIGHT/UP/DOWN - Arrow keysF1 … F2 - F keysHOME,END,PGUP,PGDN字母键 - _ + 字母(如:_g代表按键)还可 阅读全文
posted @ 2019-04-11 14:39 小·糊涂仙 阅读(1239) 评论(0) 推荐(1)
摘要: 1 static void Setting(string assetPath, int maxSize, TextureImporterFormat androidFormat, TextureImporterFormat iosFormat) 2 { 3 var texImporter = AssetImporter.GetAtPath(assetPath) as Texture... 阅读全文
posted @ 2019-04-09 17:48 小·糊涂仙 阅读(1848) 评论(0) 推荐(0)
摘要: 1 var texImporter = AssetImporter.GetAtPath(assetPath) as TextureImporter; 2 if (texImporter.DoesSourceTextureHaveAlpha()) 3 { 4 Debug.Log("textures s 阅读全文
posted @ 2019-04-09 16:21 小·糊涂仙 阅读(1145) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 24 下一页