why does my texture name turn into StreamTexture:1298

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By szccornish

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

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

jgodfrey | 2022-06-03 16:33

:bust_in_silhouette: Reply From: Inces

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.