伊景轩

2019年8月18日 #

unity 生成缩略图 , 图片缩放

摘要: public static Texture2D Resize(Texture2D source, int newWidth, int newHeight) { source.filterMode = FilterMode.Point; RenderTexture rt = RenderTexture 阅读全文

posted @ 2019-08-18 21:04 伊景轩 阅读(1295) 评论(0) 推荐(0) 编辑

2019年8月10日 #

Unity 图片的旋转

摘要: /// /// 图片逆时针旋转90度 /// /// 原图片二进制数据 /// 原图片宽度 /// 原图片高度 /// 输出目标图片 publ... 阅读全文

posted @ 2019-08-10 11:24 伊景轩 阅读(1025) 评论(0) 推荐(0) 编辑

2019年8月7日 #

利用LayerMask 位运算

摘要: 利用LayerMask 位运算 直接设置为 layer1camera.cullingMask = 1 << layer1在原来的基础上,添加层 layer1camera.cullingMask |= 1 << layer1在原来的基础上,去掉某一层 layer... 阅读全文

posted @ 2019-08-07 11:57 伊景轩 阅读(63) 评论(0) 推荐(0) 编辑

2019年7月21日 #

Deepin| Debian 离线安装dotnetcore尝试

摘要: 本来是想尝试下Deepin系统,用了一段时间感觉还不错,体验很好,比Ubuntu好多了,就考虑能不能在deepin上部署下unity3d的开发环境。 命令行方式 官方链接 https://dotnet.microsoft.com/download/linux package manager/debi 阅读全文

posted @ 2019-07-21 11:14 伊景轩 阅读(744) 评论(0) 推荐(0) 编辑

2019年6月15日 #

Java环境变量配置, jdk环境变量配置

摘要: 三个环境变量 JAVA_HOME C:\Program Files\Java\jdk1.8.0_172 Path %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin; CLASSPATH .;%JAVA_HOME%\lib;%JAVA... 阅读全文

posted @ 2019-06-15 11:21 伊景轩 阅读(30) 评论(0) 推荐(0) 编辑

2019年6月11日 #

Unity 截图

摘要: class CaptureScreen : Editor { [MenuItem("Tool/CaptureScreen")] public static void DoAction() { ... 阅读全文

posted @ 2019-06-11 15:08 伊景轩 阅读(48) 评论(0) 推荐(0) 编辑

2019年5月22日 #

正则表达式语法

摘要: a|b 匹配 a 或 b gr(a|e)y 匹配 gray 或 grey . 匹配任一字符 [abc] 匹配任一字符: a 或 b 或 c [^abc] 匹配任一字符, 但不包括 a、b、c [a-z] 匹配从 a 到 ... 阅读全文

posted @ 2019-05-22 17:23 伊景轩 阅读(42) 评论(0) 推荐(0) 编辑

2019年3月19日 #

Canvas render mode 设置为World Space不响应事件问题排查

摘要: 排查: 被其他render mode 的UI或者canvas遮挡了,关闭掉其他所有的canvas看下You have to select a camera, in "Canvas Ingore Reversed Graphics on WorldSpace ... 阅读全文

posted @ 2019-03-19 15:12 伊景轩 阅读(465) 评论(0) 推荐(0) 编辑

2019年1月15日 #

mixamo 导出的模型没有贴图

摘要: 任意创建一个文件夹,例如“material", 然后,import settings ->Materials --> Extract Textures -->选择 material 文件夹 ,导出即可 Next select the folder you c... 阅读全文

posted @ 2019-01-15 10:31 伊景轩 阅读(1168) 评论(0) 推荐(0) 编辑

2018年12月25日 #

SortedList 、SortedDictionary、Dictionary元素添加耗时对比

摘要: public void DoTest() { Stopwatch sw = new Stopwatch(); sw.Start(); SortedDictionary sdt = new SortedDictio... 阅读全文

posted @ 2018-12-25 11:35 伊景轩 阅读(43) 评论(0) 推荐(0) 编辑

导航