Hello, I have a problem when I say in my script
var object = preload ("res: //scene/object.tscn") .instance ()
and the object is duplicated.
then everything loads perfectly, but my scene contains a signal, to be precise a button signal.
If I press the button then the output shows an error:
E 0: 00: 04.882 emit_signal: Error calling method from signal 'pressed': 'Node2D (tree.gd) :: _ on_Button_pressed ()': Method not found ..
<C ++ source code> core / object.cpp: 1260 @ emit_signal ()
this cannot then be carried out.
Does anyone know what I mean and what I can do?
Thanks in advance