Hello,
So pop up damage indicators on my characters have becoem to much. I want the healing to appear over the health bar instead. The health bar is a GUItexture, so it’s co-ordinates range from 0,0 to 1,1 as you’re aware.
I have tried using Camera.ScreenToWorldPoint(healthBar.transform.position), without any luck, the text just instantiates in the center of the screen. i.e.
hObject = Instantiate(popUpHealing2,Camera.ScreenToWorldPoint(healthBar.transform.position),popUpDamage.transform.rotation);
the expected behavior is that the little numbers will appear and float up(that script works) on the health bar.
The current behavior is that the text appears center screen, atop the player.
Thanks.