![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Rayu |
var textures = [
'res://Emojis/Emoji_set1/EyeClosed_Smiley_120x120.png',
'res://Emojis/Emoji_set2/Frog_130x130.png',
'res://Emojis/Emoji_set3/Cool_Emoji120x120.png',
]
func _ready() -> void:
Globals.load_store()
$Sprite.texture = load(textures[Globals.store.selected]) <---- Error
Invalid set index ‘texture’ (on base: ‘null instance’) with value of type ‘StreamTexture’
i found this, but didn’t solve my problem
https://forum.godotengine.org/65367/invalid-index-texture-base-null-instance-value-streamtexture
i had a similar problem here, did you had solve this problem? if so, pls let me know
AXB | 2022-12-29 11:32