⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

UI.ButtonRound

static bool ButtonRound(string id, Sprite image, float diameter)

A pressable round button! This button has a square layout, and only shows an image, no text. 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. This defaults to the line height.
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!