UI.ButtonRound
static bool ButtonRound(string id, Sprite image, float diameter)
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!
string id | An id for tracking element state. MUST be unique within current hierarchy. |
Sprite image | An image to display as the face of the button. |
float diameter | The diameter of the button’s visual. |
RETURNS: bool | Will return true only on the first frame it is pressed! |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!