Godot 4 - Nonexistent function 'set_normal_texture' in base

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By plambrecht

I have updated an app created in Godot 3 to Godot 4 and have been able to figure out all the manual changes I needed to do except for the following.

I get this message:

Invalid call. Nonexistent function 'set_normal_texture' in base 'TextureButton'.

When trying to run the following:

NewDieTexture = load("res://images/d" + str(DIE_NUMBER) + "_off.png")

Any help would be greatly appreciated. Thank you.

:bust_in_silhouette: Reply From: jgodfrey

You want set_texture_normal()

See the docs here: TextureButton — Godot Engine (stable) documentation in English

Thank you!. I didn’t notice the syntax change…

plambrecht | 2023-03-14 21:53