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

NameDescription
MarkupAttribute markerThe marker to process.
StringBuilder childBuilderA StringBuilder to build the styled text in.
List<MarkupAttribute> childAttributesAn optional list of child attributes to apply, but this is ignored for TextMeshPro styles.
string localeCodeThe locale code to use when formatting the style.

Returns

A list of markup diagnostics if there are any errors, otherwise an empty list.