Sort depth on element inside container and scene

Hello! I’m facing an issue regarding the depth/sorting property.

I have a container which contains a text element (let’s call it ContentContainer). The ContentContainer is a child of another container (let’s call it ParentContainer). The ParentContainer is created and added to the scene. For now, everything is fine.

However, when the user click, a gameObject (ellipse) is created directly on the scene. Is there a way to have the ellipse behind every container? At the moment, the ellpise is on top of everything.

Thanks

this.sys.displayList.sendToBack(ellipse)
1 Like