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

Method ButtonRoundAt

StereoKit/Systems/UI.cs:705–706  ·  view source on GitHub ↗

A variant of UI.ButtonRound that doesn't use the layout system, and instead goes exactly where you put it. An id for tracking element state. MUST be unique within current hierarchy. An image to display as the face of the button. This is the top left corner of the UI element relative to the current

(string id, Sprite image, Vec3 topLeftCorner, float diameter)

Source from the content-addressed store, hash-verified

703 /// <returns>Will return true only on the first frame it is pressed!
704 /// </returns>
705 public static bool ButtonRoundAt(string id, Sprite image, Vec3 topLeftCorner, float diameter)
706 => NativeAPI.ui_button_round_at_16(id, image?._inst ?? IntPtr.Zero, topLeftCorner, diameter);
707
708 /// <summary>A toggleable button! A button will expand to fit the
709 /// text provided to it, vertically and horizontally. Text is re-used

Callers

nothing calls this directly

Calls 1

ui_button_round_at_16Method · 0.80

Tested by

no test coverage detected