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.ReplacementMarkupHandlerRemarks
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
| Name | Description |
|---|---|
| lineProvider | The line provider to register this markup processor with. |
| palette | The MarkupPalette to use when applying styles. |
Methods
| Name | Description |
|---|---|
| ProcessReplacementMarker(MarkupAttribute,StringBuilder,List | Processes a replacement marker by applying the style from the given palette. |