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

Method RadioAt

StereoKit/Systems/UI.cs:674–678  ·  view source on GitHub ↗

This is the top left corner of the UI element relative to the current Hierarchy. The layout size for this element in Hierarchy space.

(string text, bool active, Sprite imageOff, Sprite imageOn, UIBtnLayout imageLayout, Vec3 topLeftCorner, Vec2 size)

Source from the content-addressed store, hash-verified

672 /// <param name="size">The layout size for this element in Hierarchy
673 /// space.</param>
674 public static bool RadioAt(string text, bool active, Sprite imageOff, Sprite imageOn, UIBtnLayout imageLayout, Vec3 topLeftCorner, Vec2 size)
675 {
676 bool value = active;
677 return NativeAPI.ui_toggle_img_at_16(text, ref value, imageOff?._inst ?? IntPtr.Zero, imageOn?._inst ?? IntPtr.Zero, imageLayout, topLeftCorner, size) && !active;
678 }
679
680 /// <summary>A pressable button! A button will expand to fit the text
681 /// provided to it, vertically and horizontally. Text is re-used as the

Callers

nothing calls this directly

Calls 1

ui_toggle_img_at_16Method · 0.80

Tested by

no test coverage detected