fungus

Open full view…

Is it possible to add Pinyin for say dialog text

prachibarve
Fri, 24 Mar 2017 12:59:23 GMT

I need to display (Chinese)Pinyin with tones for the text displayed through say command for example: Jīntiān, māmā hé bǎobǎo huì qù chāoshì. 今天,妈妈和宝宝会去超市。 I also want to make words clickable to play the pinyin tone audio. please advice how to achieve this. Thanks for any help, Prachi.

chrisgregan
Mon, 27 Mar 2017 22:13:28 GMT

You could play audio at specific points in the Say text by embedding {audio=AudioSourceName} tags at the appropriate places in the text. You would need to add an AudioSource object with the tone, and replace AudioSourceName with the name of the object. Clickable text is currently hard to do in Unity's UI system, but they are integrating Text Mesh Pro soon which would make it a lot easier to implement. Right now, if you can code I'd look at using Text Mesh Pro to set up clickable text. Fungus is compatible with Text Mesh Pro text fields, though you will probably run into trouble with the markup characters they use to define text links.