MenuItem.setLabel

Sets text on the menu_item label

class MenuItem
void
setLabel
(
string label
)

Parameters

label string

the text you want to set

Meta

Since

2.16