Unity Cookie

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)是包含多个图像的单一纹理。因此只需要绑定纹理一次,然后就可以渲染任何在图集中有图片的实体类型。
如何使用这样一个纹理图集呢? 只需要重映射矩形即可,使用纹理的一部分而不是使用它的全部。
 
根据Scripts的理解,Mesh里面包含的只是顶点和它的索引值,对应的信息保存在顶点数组和三角形数组里面。
对于每一个动画,都需要知道它的帧持续时间,通过它可以获知在转到下一帧之前动画的一个帧需要保留多久。
 
ClothesLayer ——> CommonLayer ——> SpriteLayer
4    关于九宫格问题:场景中 以玩家为中心,以NPC为中心,分布九个格子。这个问题就是服务器只向客户端推送玩家附近的信息(九个范围内),这样的话,可以减少服务器推送消息的数量。
5     为什么每一帧的显示时间不能超过 1F/FPS
如果是一帧时间还不能显示一帧动画的话,这样会降低显示效果,
每一帧的时间在那里设定。
6    Transform 变换中的localPosition:  Position of the transfrom relative to the parent transfrom.
 childCount: the number of children the Transform has.
7   要想把脚本放到 gameObject上面去,那么就需要继承 MonoBehaviour,mesh里面的数据:vertices  normals  colors tangents UVs 
 
 
 
posted @ 2013-11-16 16:41  青春不再出发  阅读(2119)  评论(0编辑  收藏  举报