摘要: 1 在Unity里面,选择脚本单击左键打开 Sync Mono Development 这样就可以打开整个工程的脚本文件进而才能在脚本中继续进行切换2Mesh MeshFilter A class to access the Mesh of the mesh filterMeshFilter.mesh Returns the instantiated Mesh assigned to the mesh filter 返回一个网格实例MeshFilter.sharedMesh Returns the shared mesh of the mesh filter这里主要就是要明确 material 阅读全文
posted @ 2013-11-16 16:41 青春不再出发 阅读(2121) 评论(0) 推荐(0) 编辑
摘要: 1推荐使用 is 或 as 操作符而不是强制2编码风格:Tab ——改成两个C# 文档注释的快捷键 (将配置表压缩,从压缩文件中查找xml配置表 这个是指Unity项目上面)3尽量使用for循环,少用 foreach。http://stackoverflow.com/questions/10929586/what-is-the-difference-between-for-and-foreach4静态变量通过类进行访问,该类所有实例的同一静态变量都是同一个值5#pragma为编译器提供的特殊的指令 就是告诉编译器什么事情需要做怎么样的处理。6virtual override(用于覆写基类的虚方 阅读全文
posted @ 2013-11-16 16:39 青春不再出发 阅读(336) 评论(0) 推荐(0) 编辑