RichTextLable in the foreground

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Godot_Starter

Is there something like the Z-Index by a Sprite, how I can show the RichTextLable in the foreground?

:bust_in_silhouette: Reply From: Sween123

Sadly, there’s no Z-index for nodes that are Control type, like RichTextLabel.
However, we can use something like Node2D as a parent so that those Control nodes will be able to inherit its parent’s Z-index.
So for your nodes, here’s a sample scene structure:
Control (Node2D) (Edit the Z-index here)
Background (ColorRect)
Label (RichTextLabel)