CharacterColorView
Class in Yarn.Unity
Inherits from AsyncDialogueViewBase
Summary
A subclass of DialogueViewBase that updates the colour of a TMPro.TMP_Text
object based on the character speaking a line. names.
Remarks
This class uses the `character` attribute on lines that it receives to determine its content. When the view's RunLineAsync(LocalizedLine,LineCancellationToken) method is called with a line whose Text 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 AsyncDialogueViewBase.
Classes
Methods
Updates the text colour of Yarn.Unity.CharacterColorView.lineTexts
based on the character name of line
, if any.
Last updated
Was this helpful?