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

:ViewportPointToRay() I dont get how to use it ?

Asked by 3 years ago

I am confused in how to use the :ViewportPointToRay() so I know that it makes a ray of 1 stud lenght but how do I transform an UI position to a screen point so I can make the needed ray.

There is no code that I am facing an error with it it is just the ray that has random stats every time.

1 answer

Log in to vote
0
Answered by 3 years ago

I realised that it depends on the game's window , so it will help to make gui elements comatible with all devices

Ad

Answer this question