Page 1 of 1
Show pop up ui above NPC
Posted: Sat Feb 11, 2023 10:55 am
by Volandpro
Hello!
Is it possbile to show pop up UI (for example "Press E") above NPC when player enters his trigger and hide it when player leaves it's trigger?
Re: Show pop up ui above NPC
Posted: Sat Feb 11, 2023 11:09 am
by Tony Li
Hi,
Yes. Use a Selector Proximity Selector. See the
Interaction Tutorial video.
Re: Show pop up ui above NPC
Posted: Sat Feb 11, 2023 11:18 am
by Volandpro
Oh, it is so simple
BTW, if I want to change the opacity of my pop up on show/hide, should I use my own scripts or there is an out of the box solution?
Re: Show pop up ui above NPC
Posted: Sat Feb 11, 2023 1:53 pm
by Tony Li
Duplicate the prefab (e.g., Basic Standard UI Selector Elements) and assign the duplicate to the Dialogue Manager GameObject's Instantiate Prefabs component in place of the original. Then edit it, changing images, fonts, etc., whatever you like.
Re: Show pop up ui above NPC
Posted: Sat Feb 11, 2023 2:05 pm
by Volandpro
Thank you!
Re: Show pop up ui above NPC
Posted: Sat Feb 11, 2023 2:20 pm
by Tony Li
Glad to help!