Zindex of cc.Graphics not follow the parent node

I have 2 node with cc.Graphics component.
When i move one of them. The graphics not follow the parent node.
It’s always in higher zIndex than all the node.
(And the graphics display not really good when this happen)
It’s like the image below here.
Any solution with this.
gift

:slight_smile: any one can help me?

maybe u need provide a live demo to show the problem :laughing:

The problem just like this :slight_smile:
gift

以后发帖将内容翻译为中文发送(排除组件名),会有很多人回复的

1赞

You can dynamically modify the zIndex property of cc.Graphics.node during game runtime to modify the rendering hierarchy and change the occlusion relationship between nodes.