Hi all,
I have a TextureFrame called TypeL.
On the click of another button I want to change the image on this TextureFrame.
Here is my code:
get_node("TypeL").set_texture("res://textures/cpu.png")
When I run and click the button, this is the error:
Invalid type in function 'set_texture' in base 'TextureFrame'. Cannot convert argument 1 from String to Object.
I've had a look around. The docs basically just have this:
void set_texture ( Object texture )
I don't know what I'm doing wrong. Any advice would be really appreciated. Thanks so much...