MenuButtonSpec record
A native-styled button injected at Anchor.
public record MenuButtonSpec : IEquatable<NativeUiElementSpec>Public Members
Section titled “Public Members”| 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; } |
Remarks
Section titled “Remarks”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.
See Also
Section titled “See Also”- record NativeUiElementSpec
- namespace Stellar.Abstractions.Services