How to modify @pinter chat mode ?

All about user interface, be it customizing built-in UIs or adding new ones.
Post Reply
weber.rich
Posts: 3
Joined: 27 Apr 2021 20:10

How to modify @pinter chat mode ?

Post 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

idaot
support
Posts: 275
Joined: 01 Aug 2020 08:25

Re: How to modify @pinter chat mode ?

Post 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

Post Reply