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).

YarnAttributeMarkerProcessor

base class for processing replacement markers during parsing. these run at parse-time to modify text (e.g. [select], [plural], [ordinal]). subclass and override process_replacement_marker() for custom markers.
class_name YarnAttributeMarkerProcessor
extends RefCounted

Inherits from RefCounted

#Nested Types

#Methods

#process_replacement_marker(YarnMarkupAttribute, Array, Array, String)

override to process a replacement marker. modify child_builder[0] to change output text. return diagnostics and invisible character count.
func process_replacement_marker(marker: YarnMarkupAttribute, child_builder: Array, child_attributes: Array, locale_code: String) -> YarnAttributeMarkerProcessor.ReplacementMarkerResult

Parameters

Returns YarnAttributeMarkerProcessor.ReplacementMarkerResult

Generated from Yarn Spinner for Godot GDScript 3.3.