上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 24 下一页
摘要: 在滑动屏幕的时候,上图中的内容饶圆中心旋转,并且箭头的方向保持不变 每个Item上挂载的脚本: 父结点上挂载的脚本: 阅读全文
posted @ 2019-04-24 19:27 小·糊涂仙 阅读(690) 评论(0) 推荐(0) 编辑
摘要: DLL中导出函数的声明有两种方式: 1、在函数声明中加上__declspec(dllexport) 2、采用模块定义(.def) 文件声明,.def文件为链接器提供了有关被链接程序的导出、属性及其他方面的信息。 使用P/Invoke直接调用native C++ Dll里面的函数。(注:此方法只能调用 阅读全文
posted @ 2019-04-24 15:13 小·糊涂仙 阅读(1521) 评论(0) 推荐(0) 编辑
摘要: c api 参考手册:http://www.leeon.me/a/lua-c-api-manual 阅读全文
posted @ 2019-04-14 18:52 小·糊涂仙 阅读(445) 评论(0) 推荐(0) 编辑
摘要: c-api 参考手册:http://www.leeon.me/a/lua-c-api-manual 阅读全文
posted @ 2019-04-14 18:29 小·糊涂仙 阅读(152) 评论(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 小·糊涂仙 阅读(1186) 评论(0) 推荐(0) 编辑
摘要: 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 小·糊涂仙 阅读(1818) 评论(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 小·糊涂仙 阅读(1084) 评论(0) 推荐(0) 编辑
摘要: 1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 using UnityEditor; 5 using System; 6 using UObject = UnityEngine.Object; 7 using System.IO; 8 ... 阅读全文
posted @ 2019-04-09 15:58 小·糊涂仙 阅读(550) 评论(0) 推荐(0) 编辑
摘要: C#可空类型的实现逻辑: 1、装箱与拆箱 可空值类型的装箱:若可空值类型的为null,直接返回null,不进行任何装箱操作;否则进行正常的装箱操作. 可空值类型的拆箱操作:一个已装箱的值类型 T 可以拆箱为一个 T 或者 Nullable<T>;若已装箱的值类型为 null,拆箱为Nullable< 阅读全文
posted @ 2019-04-09 11:22 小·糊涂仙 阅读(838) 评论(0) 推荐(0) 编辑
摘要: 等价于: 阅读全文
posted @ 2019-04-09 11:15 小·糊涂仙 阅读(417) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 24 下一页