CharacterColorView
Last updated
Was this helpful?
Last updated
Was this helpful?
Class in
Inherits from
A subclass of that updates the colour of a TMPro.TMP_Text
object based on the character speaking a line. names.
This class uses the `character` attribute on lines that it receives to determine its content. When the view's method is called with a line whose contains a `character` attribute, the text views have their TMPro.TMP_Text.color
property updated based on the colours configured in the Inspector.
This view does not present any options or handle commands. It's intended to be used alongside other subclasses of .
Updates the text colour of Yarn.Unity.CharacterColorView.lineTexts
based on the character name of line
, if any.
Associates a named character with a colour to use in a .
Called by the to signal that the dialogue has ended, and no more lines will be delivered.
Called by the to signal that dialogue has started.
Called by the to signal that a set of options should be displayed to the user.