0 votes

I set textures through code but I need to check whether a sprite has it set or doesn't has any. How do I do it?

asked Jan 19 in Engine by Fenisto (63 points)

1 Answer

0 votes
Best answer

You check the sprite's texture property. If no texture is defined then the value will be null.

answered Jan 19 by kidscancode (17,670 points)
selected Jan 19 by Fenisto

Thanks. I guess I could just print it...

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.