PaletteMarkerProcessor

Inherits from ReplacementMarkupHandler

Summary

An attribute marker processor that uses a MarkupPalette to apply TextMeshPro styling tags to a line.

public sealed class PaletteMarkerProcessor : Yarn.Unity.ReplacementMarkupHandler

Remarks

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 TextMeshProp style tags defined for the “happy” style.

Fields

NameDescription
lineProviderThe line provider to register this markup processor with.
paletteThe MarkupPalette to use when applying styles.

Methods

NameDescription
ProcessReplacementMarker(MarkupAttribute,StringBuilder,List,string)Processes a replacement marker by applying the style from the given palette.