![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | JohnSmith617 |
Hello community, I have a problem again.
var TextureReference = "[StreamTexture:1458]"
I have String variable called TextureReference that I want to set to Sprite, something like this:
$Sprite.texture = TextureReference
Any idea of how to accomplish that? I have tried:
str2var(TextureReference)
but function str2var
can’t convert string into a object
how do you get the string value? is it hard coded or do you str()
an existing variable?
rustyStriker | 2020-11-18 17:47