UI.Button

static bool Button(string text)

   
string text Text to display on the button, should be per-window unique as it will be used as the element id.
RETURNS: bool Will return true only on the first frame it is pressed!

A pressable button! A button will expand to fit the text provided to it, vertically and horizontally. Text is re-used as the id. Will return true only on the first frame it is pressed!