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