Statistics: Posted by Tony Li — Thu May 02, 2024 11:46 pm
Statistics: Posted by preeda — Thu May 02, 2024 11:05 pm
Code:
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:
void OnConversationLine(Subtitle subtitle){ subtitle.formattedText.text = GetTranslation(subtitle.formattedText.text);}
Statistics: Posted by Tony Li — Thu May 02, 2024 10:46 pm
Statistics: Posted by preeda — Thu May 02, 2024 10:29 pm
Statistics: Posted by preeda — Thu May 02, 2024 10:29 pm
Statistics: Posted by Tony Li — Thu May 02, 2024 7:55 am
Code:
DialogueSystemController.overrideGetLocalizedText
but the localization setup from Dialogue Editor doesn't call this delegate to get the localized text.Statistics: Posted by preeda — Thu May 02, 2024 6:51 am