Tekkaman

导航

 

UIWidget

  UIWidget在NGUI中的层次如下。

  

  根据上篇所述,UIRect实现实现了Anchor功能。而Widget提供的功能也很简单,如下:

  

  可以看到,widget只提供四个属性,alpha、pivot、depth、dimension。实际上widget就是spriteKit中的SKNode,作为所有UI控件的根结点。

参考:

1、http://www.tasharen.com/ngui/docs/class_u_i_widget.html

2、http://www.tasharen.com/forum/index.php?topic=6702

posted on 2014-06-23 19:43  Tekkaman  阅读(1448)  评论(0编辑  收藏  举报