PaletteMarkerProcessor.ProcessReplacementMarker(MarkupAttribute,StringBuilder,List,string)
Method in PaletteMarkerProcessor
Summary
Processes a replacement marker by applying the style from the given palette.
public override ReplacementMarkerResult ProcessReplacementMarker(MarkupAttribute marker, StringBuilder childBuilder, List<MarkupAttribute> childAttributes, string localeCode)Parameters
| Name | Description |
|---|---|
| MarkupAttribute marker | The marker to process. |
StringBuilder childBuilder | A StringBuilder to build the styled text in. |
List<MarkupAttribute> childAttributes | An optional list of child attributes to apply, but this is ignored for TextMeshPro styles. |
string localeCode | The locale code to use when formatting the style. |
Returns
A list of markup diagnostics if there are any errors, otherwise an empty list.