Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | zub_zob |
I was trying to create a RemoteTransform2D at runtime and assign its target:
extends Node2D
export(NodePath) var remote_path:NodePath
var rt
func _ready():
rt=RemoteTransform2D.new()
rt.remote_path=remote_path
add_child(rt)
rt.force_update_cache()
rt.force_update_transform()
It doesn’t work, path is correct but the target doesn’t go to the RemoteTransform2D position.