0 votes

Everything is in the title.
I'd like to use spritesheets for my texture buttons but apparently, TextureButton or TextureRect can't be both used that way. I love to put a certain order to my assets directory, that's why I would prefer to not using different image files just for texturing several phases of the same button.

Thanks in advance.

Godot version 3.4.4
in Engine by (28 points)

2 Answers

0 votes

Nobody? I thout this would be a simple question...

by (28 points)
0 votes

Hi,
Yes, you can.
For use spritesheets with TextureButton or TextureRect, choose New AtlasTexture and place your spritesheet to atlas property into AtlasTexture resource.
And adjust region to adapt spritesheet to texture node.

by (56 points)

Thanks you, it worked!

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.