Code: Select all
KIM KITSURAGI - "No need to worry," the
lieutenant steps in, "we''re not saying you did."
Code: Select all
void OnConversationLine(Subtitle subtitle)
{
subtitle.formattedText.text = subtitle.speakerInfo.Name + " - <indent=10%>" + subtitle.formattedText.text + "</indent>";
}
Note: If your indented text overlaps the name, you'll need to fix a bug in TextMesh Pro:
1. Make the TextMesh Pro package editable. See How can I modify built-in packages?
2. Edit TMP_Text.cs. Around line 7000-8500, locate this line:
Code: Select all
m_xAdvance = tag_Indent;
Code: Select all
if (m_xAdvance < tag_Indent)
{
m_xAdvance = tag_Indent;
}