Code: Select all
DialogueSystemController.overrideGetLocalizedText
Do we have a way to make Dialogue Editor get a localized text from the delegate function?
Code: Select all
DialogueSystemController.overrideGetLocalizedText
Code: Select all
foreach (var conversation in database.conversations)
{
foreach (var entry in conversation.dialogueEntries)
{
Field.SetValue(entry.fields, "LK", GetTranslation(entry.DialogueText), FieldType.Localization);
}
}
EditorUtility.SetDirty(database);
Code: Select all
void OnConversationLine(Subtitle subtitle)
{
subtitle.formattedText.text = GetTranslation(subtitle.formattedText.text);
}