PaletteMarkerProcessor
An attribute marker processor that uses a MarkupPalette to
apply TextMeshPro styling tags to a line.
public sealed class PaletteMarkerProcessor : Yarn.Unity.ReplacementMarkupHandlerInherits from Yarn.Unity.ReplacementMarkupHandler
Implements Yarn.Markup.IAttributeMarkerProcessor
This marker processor registers itself as a handler for markers
whose name is equal to the name of a style in the given palette. For
example, if the palette defines a style named "happy", this marker processor
will process tags in a Yarn line named
[happy] by inserting the
appropriate TextMeshPro style tags defined for the "happy" style.#Fields
#lineProvider
The line provider to register this markup processor with.
public LineProviderBehaviour? lineProvider;#palette
#Methods
#ProcessReplacementMarker(MarkupAttribute, StringBuilder, List<MarkupAttribute>, string)
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
markerMarkupAttributeThe marker to process.childBuilderStringBuilderA StringBuilder to build the styled text in.childAttributesList<MarkupAttribute>An optional list of child attributes to apply, but this is ignored for TextMeshPro styles.localeCodestringThe locale code to use when formatting the style.
Returns ReplacementMarkerResult: A list of markup diagnostics if there are any errors, otherwise an empty list.
Generated from Yarn Spinner for Unity 3.3.