Page 1 of 1

Portrait Size

Posted: Sun Sep 10, 2023 12:28 pm
by naruhodo469
Hello, I'm currently using the visual novel template and trying to add an image to the actor's portrait. However, after adding it, my photo did not look original. Are there any ways to make the portrait normal? Thanks.

Re: Portrait Size

Posted: Sun Sep 10, 2023 1:41 pm
by Tony Li
Hi,

Inspect your dialogue UI. (It's a variant of the VN Template Standard Dialogue UI prefab.) Adjust the portrait images to the sizes you want to use. Then inspect the subtitle panel GameObject (e.g., Subtitle Panel 0) and tick the Standard UI Subtitle Panel component's Use Portrait Native Size.

Re: Portrait Size

Posted: Tue Sep 12, 2023 5:08 am
by naruhodo469
Thank you, I did it by your solution. Also, how can I want to arrange the portrait position in the conversation? For example, NPC1 is on the left, and NPC2 is on the right. Thanks.

Re: Portrait Size

Posted: Tue Sep 12, 2023 8:50 am
by Tony Li
Hi,

Use multiple subtitle panels. Each subtitle panel has a portrait image in a specific position. Most of the prefab dialogue UIs have two subtitle panels (one for NPCs, one for PCs) but a dialogue UI can have as many subtitle panels as you want. Use Dialogue Actor components on characters' GameObjects to specify which subtitle panel to use. You can also tell an actor to use a different subtitle panel using the [panel=#] markup tag or SetPanel() sequencer command, similarly to how you can change which portrait image an actor shows by using [pic=#] or SetPortrait().

For an example, see the VN UI example (direct download) on the Dialogue System Extras page.