Pardon our dust! Docs for Yarn Spinner for Unity 3.2 and Yarn Spinner for Godot C# are on docs.yarnspinner.dev (the old docs site). Docs for Yarn Spinner for Unity 3.3 (pre-release, out ASAP), Yarn Spinner for Godot GDScript and Yarn Spinner for Unreal Engine (work in progress) are on /docs/ (the new docs site).

YarnPaletteMarkerProcessor

parse-time processor that applies bbcode styling from a YarnMarkupPalette. register custom marker names (e.g. [happy], [angry]) mapped to formatting.
class_name YarnPaletteMarkerProcessor
extends YarnAttributeMarkerProcessor

Inherits from YarnAttributeMarkerProcessor

#Properties

#palette

the markup palette defining styles for each marker name.
var palette: YarnMarkupPalette = null

Type YarnMarkupPalette

#Methods

#process_replacement_marker(YarnMarkupAttribute, Array, Array, String)

func process_replacement_marker(marker: YarnMarkupAttribute, child_builder: Array, child_attributes: Array, locale_code: String) -> YarnAttributeMarkerProcessor.ReplacementMarkerResult

Parameters

Returns YarnAttributeMarkerProcessor.ReplacementMarkerResult

#register_with_line_provider(Variant)

registers this processor with a line provider for all markers in the palette.
func register_with_line_provider(line_provider: Variant) -> void

Parameters

  • line_providerVariant

#unregister_from_line_provider(Variant)

unregisters this processor from a line provider for all palette markers.
func unregister_from_line_provider(line_provider: Variant) -> void

Parameters

  • line_providerVariant

Generated from Yarn Spinner for Godot GDScript 3.3.