VBoxContainer new children problem

Godot Version

Godot 4.6.3

Question

Sup,
I have a problem when i try to clone a scene “noti” it appears always no matter what under everything, even under the map and i want it to be on top always

extends VBoxContainer

var noti = preload("res://scenes/notification.tscn")


func send_notification(text: String):
	var noti_c = noti.instantiate()
	add_child(noti_c)
	noti_c.get_node("text").text = text

(VBoxContiner is the parent of the “noti”)

Is your Ui canvas layer on a layer below the others? Have you tried setting it to a higher Layer?

Yeah, I tried setting the layer to a higher value, but it didn’t change anything, it still behaves the same. I also forgot to mention that if I add the scene manually, it appears on top.

Sorry about recent answer, i missed that is Ui is already a CanvasLayer.

What is your notification scene? Can you share that? Does it use it’s own CanvasLayer?