Search Unity

Unity UI WorldToScreenPoint in a screen space-camera canvas

Discussion in 'UGUI & TextMesh Pro' started by lejean, Mar 8, 2019.

  1. lejean

    lejean

    Joined:
    Jul 4, 2013
    Posts:
    392
    I'm trying to add split screen in my game, so I'm using 2 screen space camera canvasses for both players.

    But if I try to make a healthbar follow with WorldToScreenPoint I got completely wrong values for the screen space camera canvas.

    Is there some other function I should be using?
     
  2. lejean

    lejean

    Joined:
    Jul 4, 2013
    Posts:
    392
    Sigh, anyone?