# Wierd TextureButton style behaviour

**URL:** <https://forum.godotengine.org/t/wierd-texturebutton-style-behaviour/108354>\
**Category:** Help\
**Tags:** 2d, godot-4\
**Created:** [April 15, 2025, 4:24pm UTC](https://forum.godotengine.org/t/wierd-texturebutton-style-behaviour/108354 "2025-04-15T16:24:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreww](https://forum.godotengine.org/letter_avatar_proxy/v4/letter/a/3bc359/32.png) [@Andreww](https://forum.godotengine.org/u/Andreww)\
**Post date:** [April 15, 2025, 4:24pm UTC](https://forum.godotengine.org/t/wierd-texturebutton-style-behaviour/108354/1 "2025-04-15T16:24:23Z")

</div>

Godot 4.2.2

### Intro

I don’t understand how TextureButton’s styles affect on each other.  
I thought that when state of button changes (normal. hover, focus, etc) sprite just changes. But as I discover when button focused sprite not changes but rendered on normal texture.

### Problem

I want button to behave same on hover and focused states, because I want same visuals for gamepad and mouse interface interactions

### Question

Why button behave like that  
How to fix it?

### Screenshots

normal button  
 ![image](https://forum.godotengine.org/uploads/default/original/3X/3/c/3cdf7debb7e219f74ac5285c15a1d787f9669b77.png)

hovered button  
 ![image](https://forum.godotengine.org/uploads/default/original/3X/a/6/a692013d1b03b4b83db7020438254487bbd616d5.png)

focused button (have both focus and normal sprites)  
 ![image](https://forum.godotengine.org/uploads/default/original/3X/9/2/922633dcf0102e3b84e50121aaf1925412896e83.png)

---

<div class="post-metadata">

**Author:** ![mrcdk](https://forum.godotengine.org/user_avatar/forum.godotengine.org/mrcdk/32/7159_2.png) [@mrcdk](https://forum.godotengine.org/u/mrcdk)\
**Post date:** [April 15, 2025, 5:24pm UTC](https://forum.godotengine.org/t/wierd-texturebutton-style-behaviour/108354/2 "2025-04-15T17:24:25Z")

</div>

It’s explained in the documentation [`TextureButton.texture_focused`](https://docs.godotengine.org/en/stable/classes/class_texturebutton.html#class-texturebutton-property-texture-focused)

> Texture to overlay on the base texture when the node has mouse or keyboard focus. Because texture\_focused is displayed on top of the base texture, a partially transparent texture should be used to ensure the base texture remains visible. A texture that represents an outline or an underline works well for this purpose. To disable the focus visual effect, assign a fully transparent texture of any size. Note that disabling the focus visual effect will harm keyboard/controller navigation usability, so this is not recommended for accessibility reasons.

---

<div class="post-metadata">

**Author:** ![system](https://forum.godotengine.org/uploads/default/original/2X/4/4b0a7fa8a6334634b94a13d421f0d99e6f04e21f.svg) [@system](https://forum.godotengine.org/u/system)\
**Post date:** [September 17, 2025, 2:17pm UTC](https://forum.godotengine.org/t/wierd-texturebutton-style-behaviour/108354/3 "2025-09-17T14:17:33Z")

</div>

Closed on September 17, 2025, 2:17pm UTC

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