Quantcast
Channel: Cocos中文社区 - 最新帖子
Viewing all articles
Browse latest Browse all 494966

creator如何动态设置遮挡关系

$
0
0

addChild ( child [localZOrder ] [tag ] )
添加子节点,并且可以修改该节点的 局部 Z 顺序和标签。

名称 类型 描述
child Node
A child node
localZOrder optional Number
Z order for drawing priority. Please refer to setZOrder(int)
tag optional Number | String
An integer or a name to identify the node easily. Please refer to setTag(int) and setName(string)
示例:
node.addChild(newNode, 1, 1001);


Viewing all articles
Browse latest Browse all 494966

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>