Parse conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
forrestuv
Posts: 64
Joined: Tue Nov 06, 2018 11:28 am

Parse conversation

Post by forrestuv »

Hi,
How to parse Subtitle/Responses text before they are displayed?
I need to apply search/replace to them.
thx
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Parse conversation

Post by Tony Li »

Hi,

Add a script with OnConversationLine(Subtitle) and OnConversationResponseMenu(Response[]) special script methods to your Dialogue Manager GameObject.
forrestuv
Posts: 64
Joined: Tue Nov 06, 2018 11:28 am

Re: Parse conversation

Post by forrestuv »

Will text length be updated as well?I've tried replacing text in formattedText but length is not calculated correctly anymore
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Parse conversation

Post by Tony Li »

What text length isn't being computed?
Post Reply