can not centor Label node when parent node is Node2D

Godot Version

Godot_v4.4.1-stable_win64

Question

I created a new scene, root is Node2D, and then created child Label node, when i use the tool bar anchor preset to centor the Label, the Label haven’t been placed at centor of screen.

I tried to create a new scene and use Node as root, and create child Label node, then i can use anchor preset to centor the Label node.

Can anyone tell me when use the Node2d parent node, why i can’t center the Label


Use Control or a CanvasLayer node as a parent of your Label.
Set the Control node to stretch to Full Rect.
Set the Label node to anchor it to the middle of the screen.

Node2D nodes generally shouldn’t be mixed with Control nodes unless you specifically know what you want to achieve.
You should usually separate these.

ok,thank you