0 votes

so the thing is i want to put some texture in my button..
but the texture change name because i put in dictionary first..
(i print it out)

so now i want to know why it change name to StreamTexture.. because the code isn't working because of this

in Engine by (68 points)

Not sure I understand the problem. Can you post the non-working code and add some more detail to your description?

1 Answer

0 votes

It doesn't change name, it changes type. StreamTecture with ID is a result of preloading/loading image resource. StreamTexture is correct type for texture of the Sprite, so I doubt it is the reason your code is not working. I bet You messed up assigning the reference of resource to actual Sprite. For example You saved preloaded images into a file and tried to load it back from disc in order to assign to Sprite.
Post the code please.

by (7,305 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 Frequently asked questions and 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 [email protected] with your username.