BuiltInMarkupReplacer
A marker processor that handles the built-in markers
[select][plural], and [ordinal].public class BuiltInMarkupReplacer : IAttributeMarkerProcessorInherits from System.Object
Implements Yarn.Markup.IAttributeMarkerProcessor
#Methods
#ProcessReplacementMarker(MarkupAttribute, StringBuilder, List<MarkupAttribute>, string)
Produces replacement text for a marker.
public ReplacementMarkerResult ProcessReplacementMarker(MarkupAttribute marker, StringBuilder childBuilder, List<MarkupAttribute> childAttributes, string localeCode)Parameters
- The marker to process into replacement text.
childBuilderSystem.Text.StringBuilderASystem.Text.StringBuilderthat contains the child text contained withinmarker. Use the methods on this stringbuilder to produce any text needed from this marker.childAttributesSystem.Collections.Generic.List<Yarn.Markup.MarkupAttribute>The child attributes ofmarker.localeCodestringA BCP-47 locale code that represents the locale in which any processing should take place.
Returns ReplacementMarkerResult: The collection of diagnostics produced during processing,
and the number of invisible characters created during processing.
Generated from Yarn Spinner for Unity 3.3.