Hello everyone,

I want to change my button by a TextureButton (because i don't need text) but something wrong when i use this node: the buttons aren't relocalised when the main node is moved. Button node are well showed, so why textureButtons stay in coord 0, 0 and not classic button ?

  • The node's parent is a tilemap and this tilemap is to 0, 0, no differances using position or global position in this case.

    But, i found something interresting: if i disable the "expand" option of the textureButton's node, my buttons are well positioned in the gridContainer. Adjusting the GrindContainer's anchor prevent overlap betweed buttons and panel font.

    The textureButton node locked the texture to the top-left but in my case, it's not a problem.

    I think the problem is solved.

    Thank you for your attention, Megalomaniak.

It seems something wrong when the buttons are instanced and added:

When i check the "distant" scene (so what append in game), the button rects parameters are set to 0 everywhere except the scale (1, 1). So that's means the position not updated from the gridContainer...

Why ?

Wouldn't position be local/relative to parent? Should you perhaps use global_position instead?

    The node's parent is a tilemap and this tilemap is to 0, 0, no differances using position or global position in this case.

    But, i found something interresting: if i disable the "expand" option of the textureButton's node, my buttons are well positioned in the gridContainer. Adjusting the GrindContainer's anchor prevent overlap betweed buttons and panel font.

    The textureButton node locked the texture to the top-left but in my case, it's not a problem.

    I think the problem is solved.

    Thank you for your attention, Megalomaniak.