Hello! I have a TextureButton with enabled toggle_mode property and two another node TextureRect and Label — child’s of TextureButton. So, I use TextureRect and Label for animation of toggle, but the clickable area is partially covered by them. I can only click where these nodes do not overlap the button. How do I place this clickable area in the foreground so that the player can easily click on the button?
I don’t understand why you did this, wouldn’t it be better to use two Buttons and manage them through the code?
But now you can create another texturebutton and attach it to the main button with the code.
Sorry, I switched from Unity and at the moment I’m migrating and reworking the project already on Godot. I still don’t know much about how to work with UI nodes in Godot. What you means about that?
For explaine my question, I will show for why I add TextureRect and Label.
I move Label and TextureRect by tween for show current toggle enabled status and change font color and modulate by code.
Oh, it’s very simple in Godot, just give these two photos to the Texture Button and that’s how it’s all done with a Texture Button, in this case everything works perfectly standard and correct