[Solved] Replaying a Node
Posted: Tue Dec 04, 2018 5:37 am
Hello,
My game has 2 languages, with the option to change between them from a settings menu - which calls DialogueSystemController.SetLanguage
When a user changes to a different language mid-conversation, I would like the currently displayed text to be re-shown in the selected language.
What happens at the moment is that the currently displayed text remains in the old language and the new language is used for any subsequent text.
I've been searching for some sort of command or function that will replay or repeat the current node, but so far I've come up empty.
Any guidance is appreciated.
Edit: I just realized what I probably want is to refresh the current subtitle using the localized subtitle, and not replay the whole node (which would likely introduce a bunch of bugs depending on which node was active when the user switched languages)
My game has 2 languages, with the option to change between them from a settings menu - which calls DialogueSystemController.SetLanguage
When a user changes to a different language mid-conversation, I would like the currently displayed text to be re-shown in the selected language.
What happens at the moment is that the currently displayed text remains in the old language and the new language is used for any subsequent text.
I've been searching for some sort of command or function that will replay or repeat the current node, but so far I've come up empty.
Any guidance is appreciated.
Edit: I just realized what I probably want is to refresh the current subtitle using the localized subtitle, and not replay the whole node (which would likely introduce a bunch of bugs depending on which node was active when the user switched languages)