UI element showing even if not in view using WorldToScreenPoint

Make a Debug.Log and let it print the screen position. If z component is negative (not sure) when object is behind camera you could check for that.
If that does not work check this .

1 Like