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

How do I cast a ray from the position of a 2d gui object?

Asked by 7 years ago

Lets say I have the image label of a dot. I would like to cast a ray from the dot to the position of the mouse. How would I do that? Please provide code examples. I know how to use ray casting, I just do not know how to convert 2d gui coordinates to vector3 ones.

Answer this question