GD.Print(nameLabel.GetRect().Size);
nameLabel.Text = name;
GD.Print(nameLabel.GetRect().Size);

After setting the text, the length will become longer. I want to get the size after the change, but it seems to have not changed

    JiuMengD It itself is 118, but the number I obtained does not match this one. It is another number, similar to 55

      JiuMengD In other words, what I want is the length that will be stretched when the text content is too long, how can I obtain this length, and the length value that I need to change