#[SOLVED] Texture of Sprite2D disappear when Sprite2D inherit node is added.

2 messages · Page 1 of 1 (latest)

reef agate
#

I have created a scene from a Sprite2D, mostly to create a decoration component. When I add it to another scene by script, its texture disappear. I don't understand what is happening here and how I can fix it.

Does anybody know how to fix this? Thank you!

Edit: If I grab the gun scene and put it into main scene, it shows normally.

#

Found a way to fix, turn out I have to preload the gun scene, not call it as var gun = Gun.new()