Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | jabba |
Hi All,
I want to make a simple calculater, so I started with getting the output after the user types something in the LineEdit node. But the output isnt what it should be instead it is “Object ID: 1139”.
My code is as following:
extends Node
onready var ValueOne = $ValueOne
onready var ValueTwo = $ValueTwo
func _ready():
set_process_input(true)
func _on_Button_button_up() → void:
ValueOne.get_text()
var Val1 = str(ValueOne)
$Answer.set_text(Val1)