Page 1 of 1
Display portrait name in front of text panel
Posted: Tue Oct 29, 2024 10:38 pm
by tenmus-kun
I would like to display the name of a portrait above a text panel, similar to the attached image, with the text panel in the foreground. However, I’m having trouble with the hierarchy structure and managing visibility controls. If anyone has implemented something like this before, I would greatly appreciate any advice. Thank you for this amazing addon.
Re: Display portrait name in front of text panel
Posted: Wed Oct 30, 2024 7:19 am
by Tony Li
Hi,
Unity UI draws UI elements from the top of the hierarchy to the bottom, which means the last element in the hierarchy is drawn on top of everything else. You can move the portrait name to the bottom of the hierarchy:

- portraitNameOnTop.png (72.27 KiB) Viewed 834 times
Re: Display portrait name in front of text panel
Posted: Wed Oct 30, 2024 9:01 am
by tenmus-kun
Thank you for your answer!
Sorry for the basic question
I successfully solved the problem using the method you taught me. thank you!
Re: Display portrait name in front of text panel
Posted: Wed Oct 30, 2024 10:16 am
by tenmus-kun
sorry
Let me ask you just one more question.
When a conversation begins, the player's name and NPC's name are displayed at the same time.
The attached image is a screenshot of the hierarchy, but is it still not possible to delete the ResponseMenuPanel?
Re: Display portrait name in front of text panel
Posted: Wed Oct 30, 2024 2:04 pm
by Tony Li
Hi,
Set the subtitle panels' Visibility dropdowns to Until Superceded Or Menu Or Actor Change. This will make only one portrait name visible at a time.
The response menu panel should stay invisible unless the conversation needs to show a response menu.
Re: Display portrait name in front of text panel
Posted: Thu Oct 31, 2024 10:46 am
by tenmus-kun
thank you!
I successfully solved it with that method!
Re: Display portrait name in front of text panel
Posted: Thu Oct 31, 2024 11:32 am
by Tony Li
Glad to help!