how to enable invisible canvas in code

i want to set a canvas invisible at the start and then set it visible from a script after a while
i know how to disable it
KeyPad.visible = ! KeyPad.visible
but not how to enable a already invisible one

Try something like this?

func _ready()
   KeyPad.visible = false
   await get_tree().create_timer(2.0).timeout
   KeyPad.visible = true
1 Like