World position from screen position?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By keenfoong

Hi I’m trying to get the world/global position from a particular screen position. I know there is a function to unproject in 3d but is there one I can use for 2d?

Edit: Asking for 2D cameras instead.

:bust_in_silhouette: Reply From: metin

Yes, you can use a ray-cast. It is explained here.
… or are you talking about 2D graphics?

Hi yes, I meant for 2d graphics. I’ll edit the question to reflect this.

keenfoong | 2019-06-26 13:31