I have a question about the chat printer.
Posted: 17 Nov 2022 06:23
by booksuny
I have a question while using the chat printer function.
All the characters' lines are output from the left, so can we set the main character's lines to be output to the right like the actual iPhone's text?
Is it possible to post a picture file on the chat message? For example, in a thriller game, you send threatening pictures by text message.
Re: I have a question about the chat printer.
Posted: 17 Nov 2022 11:35
by idaot
- This will require you to override either ChatPrinterPanel.cs or ChatMessage.cs (I suggest the latter) and listen to the OnAuthorChanged event to change or rearrange the ChatMessage prefab. If you are unfamiliar with overriding I suggest checking out the CustomUI example project (https://github.com/Naninovel/CustomUIExample) which has a ChatMessage override which adds timestamps to the messages.
- This will also require an override of ChatMessage.cs into which you can include a string parsing system (similar to the timestamp example). Be aware that smilies are supported out of the box when using TextMeshPro (look up TMPro documentation for setting it up) but for any larger images, the override is necessary.
Re: I have a question about the chat printer.
Posted: 18 Nov 2022 03:42
by booksuny
Thank you for your reply!
Re: I have a question about the chat printer.
Posted: 29 May 2023 06:15
by kengreg
So at the end how this is made? what it means to to a string parsing system?