Godot 4.3
Good day, I’m making a menu screen, but every time I open the demo to debug, the two texture buttons always end up in a different part of the menu screen. Does anyone have a fix for this? Thank you!
Godot 4.3
Good day, I’m making a menu screen, but every time I open the demo to debug, the two texture buttons always end up in a different part of the menu screen. Does anyone have a fix for this? Thank you!
You need to check the anchors for those two buttons. They are probably not set correctly.
I already did sadly and it didn’t work I have a temporary solutions which is changing the windows stretch to canvas items but now it has two black bars on the sides.
If you show a picture that shows the anchors for one of the buttons, it may be helpful.
Is the border (blue or purple) around your background picture for viewport or camera?
I think it’s for camera, not for viewport. Your default viewport is set probably much bigger. So the anchors are relative to the viewport shown on the editor window.
You can also check the anchor values from the inspector and see if it matches.
Looks like setting the stretch mode to canvas items is the solution. I tested it in fullscreen and it works without the bars, it’s only the windowed version that has the bars on the sides. Thanks for trying to help!
Sorry if i’m wrong because i’m a beginner.. but maybe you could use a canvaslayer? Or maybe i’m understanding this wrong?
I honestly don’t know about the canvas layer and it’s okay I’m a beginner too. I just saw a tutorial using texture buttons and tried replicating it. I guess it has something to do with the fact that I’m using 640 x 360 as my resolution.
Oh, I didn’t know, that’s cool. Well for me… I make the buttons and stuff a child of a canvas layer, then it should be right on any screen size. Because that worked for me. And if a button has to be on the middle then i just set the anchor to the middle. (not sure if it’s called an anchor.)
That’s cool, I just like placing my stuff by hand, which is why I went the button route. I can slant it, make it move stuff like that
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.