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

Method ButtonAt

StereoKit/Systems/UI.cs:516–517  ·  view source on GitHub ↗

A variant of UI.Button that doesn't use the layout system, and instead goes exactly where you put it. Text to display on the button and id for tracking element state. MUST be unique within current hierarchy. This is the top left corner of the UI element relative to the current Hierarchy. The layou

(string text, Vec3 topLeftCorner, Vec2 size)

Source from the content-addressed store, hash-verified

514 /// <returns>Will return true only on the first frame it is pressed!
515 /// </returns>
516 public static bool ButtonAt(string text, Vec3 topLeftCorner, Vec2 size)
517 => NativeAPI.ui_button_at_16(text, topLeftCorner, size);
518
519 /// <summary>A pressable button accompanied by an image! The button
520 /// will expand to fit the text provided to it, horizontally. Text is

Callers 1

DrawMenuMethod · 0.80

Calls 1

ui_button_at_16Method · 0.80

Tested by

no test coverage detected