0 votes

I have a Texturebutton which i want it to change Texture everythime it spawns

I've experimented a little bit, but fail very hard please help :/

in Engine by (136 points)

can you show us your failing experimental code?

1 Answer

+1 vote

If it is part of you main game you can try this way:
Create a Sprite that will have your texture and put a TouchScreenButton to over his.
Change the texture of sprite. It will function like a button, but without the alignment features.

by (171 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.