godot icon indicating copy to clipboard operation
godot copied to clipboard

set_text can not accept str(number)

Open sxmad opened this issue 12 years ago • 2 comments

this can not work: get_node("label").set_text(str(10))

this can work: get_node("label").set_text("10")

version date: 2014.04.06

sxmad avatar Apr 08 '14 16:04 sxmad

on windows it can work. but on android,can not work. the problem may be caused by str() function.

sxmad avatar Apr 08 '14 16:04 sxmad

resolved with the latest version and the latest template(2014.04.10)

sxmad avatar Apr 10 '14 13:04 sxmad