Button size property not working as it should be

Godot Version

4.1.3 stable

Question

Why is the button not the size of its size property?

I have a problem with the back button of a menu in my game. The size of the button in the inspector is x: 72px y: 40px.
When I measure the buttons actual size with the ruler, its size is x: 50px y: 27px.
The button is a child of a canvas layer.
Scene Tree:

Have you made sure you didn’t change the scale property of BackButton or any of its parent nodes (either in the inspector or via code)?

1 Like

Hi njamster!
Thank you so much! For whatever reason the scale property of the canvas layer was 0.7…
Now it is displayed correctly!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.