0 votes

no se como obtener la infomacion de un label para imprimirla en otro label.
uso
updatersantes($rs6) y updatersantes(get_node("rs6")) y me imprime label:1310 en lugar del texto que esta en el label.

in Engine by (18 points)

1 Answer

0 votes

Usa de la propriedad text. No es una funcion.
https://docs.godotengine.org/es/stable/classes/class_label.html#class-label-property-text

func _ejemplo(otro_label):
    var label = $rs6
    otro_label.text = label.text
by (1,100 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.