摘要:
【UIAtlas】 UIAtlasis a container that has coordinate information for a bunch of sprites. AtlasType有2种: 1)Normal:此UIAtlas本身就是一个真的atlas,内含多个sprites。... 阅读全文
posted @ 2014-06-23 21:54
Tekkaman
阅读(1348)
评论(0)
推荐(0)
摘要:
【UIWidget】 UIWidget在NGUI中的层次如下。 根据上篇所述,UIRect实现实现了Anchor功能。而Widget提供的功能也很简单,如下: 可以看到,widget只提供四个属性,alpha、pivot、depth、dimension。实际上widget就是sprit... 阅读全文
posted @ 2014-06-23 19:43
Tekkaman
阅读(1461)
评论(0)
推荐(0)
摘要:
【UIRect中的Anchor组件】 Anchor用于实现粘着功能,寄存于UIRect类中。Anchor的类型有三种: 1、None:不使用跟随功能。 2、Unified:四条边使用相同的Target。 3、Advanced:四条边分别拥有各自的Target。 在Anchor的... 阅读全文
posted @ 2014-06-23 19:28
Tekkaman
阅读(569)
评论(0)
推荐(0)
摘要:
【Awake & Start】 MonoBehaviour.Awake() Awake is used to initialize any variables or game state before the game starts. Awake is called only once during 阅读全文
posted @ 2014-06-23 16:29
Tekkaman
阅读(437)
评论(0)
推荐(0)
摘要:
【Unity3D Text】 3D Text通过"Text Mesh"组件、"MeshRender共同完成",通过如下方法要以创建一个3D Text。 3D Text对象包含如下组件: 最常用的需要所有人都关注的三个方法如下: Font必须是ttf字体,导入ttf很简单,直接把t... 阅读全文
posted @ 2014-06-23 12:55
Tekkaman
阅读(1841)
评论(0)
推荐(0)
浙公网安备 33010602011771号