05 2016 档案

摘要:class Util(): @staticmethod def Func1(): print "Execute Func1!" def main(): Util.Func1() 阅读全文
posted @ 2016-05-24 17:44 HONT 阅读(432) 评论(0) 推荐(0) 编辑
摘要:用enumerate再封装一次函数返回的迭代,即可支持索引。 C#也可以实现类似的写法 阅读全文
posted @ 2016-05-23 14:31 HONT 阅读(6095) 评论(0) 推荐(0) 编辑
摘要:网上有很多,但大多使用Camera.RenderToCubemap接口,不能满足需求。 写了段代码可以载入Texture2D生成Cubemap(在Editor下运行): 生成结果: 阅读全文
posted @ 2016-05-10 09:01 HONT 阅读(1788) 评论(0) 推荐(0) 编辑
摘要:感谢韩同学提供的资源 Unity本身提供了float,int,vector3..等类型字段的gui接口,而对于集合类型一般要自己硬写。 官方提供了一个List的自定义GUI,但使用起来非常复杂 UnityEditorInternal.ReorderableList使用: http://www.cnb 阅读全文
posted @ 2016-05-04 12:57 HONT 阅读(3352) 评论(0) 推荐(0) 编辑
摘要:原文地址:http://va.lent.in/unity-make-your-lists-functional-with-reorderablelist/ This article is reproduced, the original address: http://va.lent.in/unit 阅读全文
posted @ 2016-05-04 12:47 HONT 阅读(3040) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示