I am trying to write some code that clears all the text in a TextEdit node. So far I have:
func _on_button_pressed() -> void:
$TextEdit.text = ""
It works, however, I noticed that the TextEdit class has an enumeration called:
MENU_CLEAR = 3
Erases the whole TextEdit text.
How do I call this enumeration to clear the text?