CC3.6 How to set/change zOrder of a Node?

Hi,

Does anyone know if there is a way to update or change zOrder of a Node using a script?
I was looking into things like
this.node.setLocalZOrder(10);

You can use setSiblingIndex to update or change zOrder.

2 Likes

thank you so much

I have another question, how to fix this problem
image