MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / ButtonRound

Method ButtonRound

StereoKit/Systems/UI.cs:691–692  ·  view source on GitHub ↗

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! An id for tracking element state. MUST be unique within current hierarchy. An image to display as the face of the button. <param name="diamet

(string id, Sprite image, float diameter = 0)

Source from the content-addressed store, hash-verified

689 /// <returns>Will return true only on the first frame it is pressed!
690 /// </returns>
691 public static bool ButtonRound(string id, Sprite image, float diameter = 0)
692 => NativeAPI.ui_button_round_16(id, image?._inst ?? IntPtr.Zero, diameter);
693
694 /// <summary>A variant of UI.ButtonRound that doesn't use the layout
695 /// system, and instead goes exactly where you put it.</summary>

Callers 1

ShowButtonWindowMethod · 0.80

Calls 1

ui_button_round_16Method · 0.80

Tested by

no test coverage detected