Registering Variants
Pushing Variant Text at Runtime
At runtime, push text for each variant using suffixed keys:How Variant Resolution Works
When the aggregator composites the nameplate for a viewer:- It checks which variant index the viewer selected for this segment
- If the viewer selected variant 2, it looks for the key
"health.2" - If that key exists, it uses that text
- If that key is missing, it falls back to the base key
"health"
Variant Name Tips
Variant names can include parenthesized examples:Prefix, Suffix, and Bar Customization
When a player selects a variant, the format popup also lets them configure:- Prefix — text prepended to the value (e.g.
HP: [) - Suffix — text appended to the value (e.g.
]) - Bar empty fill — the character used for unfilled bar positions (only shown for Bar variants)
Segments Without Variants
If your segment only has one display format, don’t calldescribeVariants(). The format button won’t appear on the chain block, and the segment will always display its base key text.