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

YarnPaletteMarkupProcessor

converts [color] markup attributes to bbcode color tags.
class_name YarnPaletteMarkupProcessor
extends YarnMarkupAttributeProcessor

Inherits from YarnMarkupAttributeProcessor

#Properties

#palette

var palette: Dictionary = {}

Type Dictionary

#Methods

#add_palette_color(String, Variant)

add a color to the palette
func add_palette_color(name: String, color: Variant) -> void

Parameters

  • nameString
  • colorVariant

#process_close()

func process_close() -> String

Returns String

#process_open(String, Dictionary)

func process_open(attribute_value: String, properties: Dictionary) -> String

Parameters

  • attribute_valueString
  • propertiesDictionary

Returns String

#remove_palette_color(String)

remove a color from the palette
func remove_palette_color(name: String) -> void

Parameters

  • nameString

Generated from Yarn Spinner for Godot GDScript 3.3.