How to instantiate at screen space

I want to instantiate a sprite (warning signal) at the x position of where a flying enemy is. The y position, however should always be at the top of the screen. I tried this:

Instantiate (redarrow, new Vector2( transform.position.x,Screen.height), Quaternion.identity);

but what this does is getting the right y position, but for the x position, because the world space is different from the screenspace it is always off. How do i project the x position into screenspace?

Camera.WorldToScreenPoint might be what you’re looking for.