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