09 2018 档案

摘要:参考 https://www.cnblogs.com/hont/p/7143626.html github地址 https://github.com/yingsz/instancing/ 补充2点: 1怎么add per instancing objet data 代码里使用set*Array,比如 阅读全文

posted @ 2018-09-18 19:49 marcher 阅读(287) 评论(0) 推荐(0)

摘要:环境unity566,.net2.0 下载protobuf-net https://github.com/mgravell/protobuf-net/tree/r668 因为这个vs2015就可以打开,主干需要2017 下载ILRuntime https://github.com/Ourpalm/I 阅读全文

posted @ 2018-09-15 11:41 marcher 阅读(1266) 评论(0) 推荐(0)

摘要:1使用unsafe,直接修改字符串 修改text部分 但是有个坑,lua是utf8编码,而c#里是ucs2b编码,所以需要做个转换,明天补上 需要2个方法,一个是获取utf8编码个数 一个是从utf8转到unicode(utf16) 修改text部分 阅读全文

posted @ 2018-09-04 22:02 marcher 阅读(495) 评论(0) 推荐(0)

摘要:起因是ulua里,从luajit读字符串到c#里,做了编码转换,如下 public static string lua_tostring(IntPtr luaState, int index) { var kind = lua_type(luaState, index); if (kind == L 阅读全文

posted @ 2018-09-04 21:59 marcher 阅读(454) 评论(0) 推荐(0)

导航