Skip to content
Version 2.11.0
↓ Get the launcher

MenuButtonSpec record

A native-styled button injected at Anchor.

public record MenuButtonSpec : IEquatable<NativeUiElementSpec>
name description
MenuButtonSpec(…) A native-styled button injected at Anchor.
IconKey { get; set; }
IconPng { get; set; }
Label { get; set; }
OnClick { get; set; }
Tooltip { get; set; }

IconPng (raw PNG bytes — the plugin reads its embedded image) is the preferred icon source: it rasterises to a real sprite that looks native in-world. IconKey is the font-glyph fallback (glyphs tofu on the game’s rail font, so prefer the PNG). IconPng wins when both are supplied. Kept as Byte[] so Abstractions stays Unity-free.