Page 1 of 1

Parse conversation

Posted: Tue Dec 12, 2023 1:37 pm
by forrestuv
Hi,
How to parse Subtitle/Responses text before they are displayed?
I need to apply search/replace to them.
thx

Re: Parse conversation

Posted: Tue Dec 12, 2023 3:25 pm
by Tony Li
Hi,

Add a script with OnConversationLine(Subtitle) and OnConversationResponseMenu(Response[]) special script methods to your Dialogue Manager GameObject.

Re: Parse conversation

Posted: Tue Dec 12, 2023 3:33 pm
by forrestuv
Will text length be updated as well?I've tried replacing text in formattedText but length is not calculated correctly anymore

Re: Parse conversation

Posted: Tue Dec 12, 2023 4:49 pm
by Tony Li
What text length isn't being computed?