![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | bashan |
I am adding “tween_complete” signal but it is not getting called (please note I have quite a few nodes with tweens inheriting from a single scene):
var tween: Tween = find_node_by_name(node, "Tween") #my own method for locating a node
var mesh = find_node_by_name(node, "MeshInstance")
tween.connect("tween_complete", self, "timeout")
tween.interpolate_property(mesh, "scale", Vector3(1, 1, 1), Vector3(0, 0, 0), 0.4, Tween.TRANS_LINEAR , Tween.EASE_IN_OUT)
tween.start()
And here is the timeout method:
func timeout(obj, key):
print("timeout : obj = ",obj,", key = ", key)
Anything I am missing?