How to modify @pinter chat mode ?

Posted: 12 May 2021 17:23
by weber.rich

I want to make a custom @pinter chat mode
Can be divided into left and right display according to characters

Now only know It is based on Chat.prefab and ChatMessage.prefab
And the program script ChatMessage.cs

Where can I modify it? Any relevant information?
Change the position of the dialog box according to the character

The picture below is expected, but I don’t know how to make it

Image


Re: How to modify @pinter chat mode ?

Posted: 14 May 2021 09:54
by idaot

Hi, you can override the Author property of ChatMessage to position the chat message according to the current author. The Custom UI example project has a CustomChatMessage.cs script that can be used as a basis for this. https://github.com/Naninovel/CustomUIExample