Page 1 of 1

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

Posted: Mon Nov 29, 2021 10:05 am
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?

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

Posted: Mon Nov 29, 2021 11:43 am
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.