ProfileCardActionSpec record
A button a plugin contributes to the game’s native profile card action bar. The framework injects a styled button per registered spec into the card’s action row (icon over label, matching the native action buttons) and, on click, resolves the carded player and invokes OnClick with their EntityId.
public record ProfileCardActionSpecPublic Members
Section titled “Public Members”| name | description |
|---|---|
| ProfileCardActionSpec(…) | A button a plugin contributes to the game’s native profile card action bar. The framework injects a styled button per registered spec into the card’s action row (icon over label, matching the native action buttons) and, on click, resolves the carded player and invokes OnClick with their EntityId. |
| IconPng { get; set; } | Raw PNG bytes for the button icon (same Unity-free convention as IconPng); the framework rasterises it to a texture. Null renders a label-only button. |
| Id { get; set; } | Stable identifier for the action; used to name the injected button and to dedupe registrations. Must be unique among registered actions. |
| Label { get; set; } | Text shown below the icon on the injected button. |
| OnClick { get; set; } | Invoked on the main thread with the carded player’s EntityId when the button is clicked. |
See Also
Section titled “See Also”- namespace Stellar.Abstractions.Services