Changes to formattedText made in OnConversationLine get overwritten by localization
Posted: Wed Apr 23, 2025 9:44 am
Hi there,
We recently upgraded from 2.2.30 to 2.2.51, and our dialogue text post-processing stopped working.
We use I2 Localization, and then modify the localized text in a custom OnConversationLine event by changing subtitle.formattedText.text.
Previously, localization happened before the any custom OnConversationLine events were called. Now, in the latest version, it looks like localization is performed after all OnConversationLine events have finished executing, which means that a) the text passed to our custom code isn't yet localized when it should be and b) any changes made by our custom code are overwritten by the localization.
How do we return to the old execution order? Is there another event that's fired after localization has finished? If not, how can we ensure that our custom code is executed after localization instead of before?
We recently upgraded from 2.2.30 to 2.2.51, and our dialogue text post-processing stopped working.
We use I2 Localization, and then modify the localized text in a custom OnConversationLine event by changing subtitle.formattedText.text.
Previously, localization happened before the any custom OnConversationLine events were called. Now, in the latest version, it looks like localization is performed after all OnConversationLine events have finished executing, which means that a) the text passed to our custom code isn't yet localized when it should be and b) any changes made by our custom code are overwritten by the localization.
How do we return to the old execution order? Is there another event that's fired after localization has finished? If not, how can we ensure that our custom code is executed after localization instead of before?