码迷,mamicode.com
首页 > 其他好文 > 详细

Canvas

时间:2017-10-01 20:34:37      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:UI   com   appear   one   col   mes   should   nts   sts   

Canvas

1、Canvas

  The Canvas is the area that all UI elements should be inside. The Canvas is a Game Object with a Canvas component on it, and all UI elements must be children of such a Canvas.

  Canvas uses the EventSystem object to help the Messaging System.

 

2、绘制顺序
  UI elements in the Canvas are drawn in the same order they appear in the Hierarchy. The first child is drawn first, the second child next, and so on. If two UI elements overlap, the later one will appear on top of the earlier one.

  SetAsFirstSibling、SetAsLastSibling、SetSiblingIndex 可以控制绘制顺序。

 

3、

  

Canvas

标签:UI   com   appear   one   col   mes   should   nts   sts   

原文地址:http://www.cnblogs.com/tekkaman/p/7617702.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!