By default, the node's pivot is its top-left corner. When you change its RectScale, it will scale around this pivot. Set this property to RectSize / 2 to center the pivot in the node's rectangle.
Namespace:Godot Assembly:
GodotSharp (in GodotSharp.dll) Version: 1.0.0