1 在Unity里面,选择脚本
单击左键打开 Sync Mono Development 这样就可以打开整个工程的脚本文件
进而才能在脚本中继续进行切换
2
Mesh
MeshFilter A class to access the Mesh of the mesh filter
MeshFilter.mesh Returns the instantiated Mesh assigned to the mesh filter 返回一个网格实例
MeshFilter.sharedMesh Returns the shared mesh of the mesh filter
这里主要就是要明确 materials MeshFilter Mesh 三者的关系
3
一个纹理图集(Atlas)是包含多个图像的单一纹理。因此只需要绑定纹理一次,然后就可以渲染任何在图集中有图片的实体类型。
如何使用这样一个纹理图集呢? 只需要重映射矩形即可,使用纹理的一部分