Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Aravash |
this code spawns the dialogue scene into the canvaslayer
func _start_chat():
print("starting")
var dialoguebar = dialogue.instance()
#does spawn, but not visible
get_node(canvasLayer).add_child(dialoguebar)
dialoguebar.position = position
replacing the textbox with another scene to instance still instances a non-visible scene
making it instance as a child of the scene that runs the code instead of a child of CanvasLayer also makes the textbox not visible, but a different object spawned that way is visible
Objects already in the canvaslayer, like a health UI, or the scene i am trying to spawn, when the game starts are visible, but when they are instanced at runtime, they are not visible
the function does get called, the right scene is attached and does get deployed into the world. I’m not sure what else to share that would be relevant to this issue.