How to set Alert Message on the top of player character?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
crusenho
Posts: 12
Joined: Sun Nov 21, 2021 3:56 am
Location: Indonesia
Contact:

How to set Alert Message on the top of player character?

Post by crusenho »

Hi, I don't know how to move the Alert Message to the top of the player head character but instead, it's always shown on the center of the screen. Is there a way, wherever my player goes or moves at any point on the screen, the alert message will always follow or stay on the top player head?
Regards,
Crusenho Agus Hennihuno
Indie Developer
User avatar
Tony Li
Posts: 22154
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to set Alert Message on the top of player character?

Post by Tony Li »

HI,

You can use Camera.WorldToScreenPoint() to position the Alert Panel above the PC.

The Dialogue System Extras page has a "UI Smooth Follow" example with a script that can do this.
Post Reply