Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

How do I convert a 3D position to a 2D position on your screen?

Asked by
lucas4114 607 Moderation Voter
8 years ago
Edited 8 years ago

So, what the title says. How can I convert a 3D position to a 2D position on your screen, for example how can I make it so the blue gui goes where the red part is on the screen? https://gyazo.com/419662dacab2f576926d6584bb227a75 (I do know about BillboardGui but I want to do it in a ScreenGui)

0
I want to figure this out too. xD It would be cool to have it so that a gui is between the cursor and the object until they are completely hovering on the object MrLonely1221 701 — 8y

1 answer

Log in to vote
1
Answered by 8 years ago

WorldToScreenPoint

WorldToScreenPoint produces a Vector3 value where the X/Y/Z values represent the X and Y values (in offset) for the GUI, and the Z value is how far away it is from the camera.

Ad

Answer this question