J_guar515
(Jaguar_515)
July 4, 2019, 1:10am
#1
In the WorldToScreenPoint API reference , there is a typo in the example code.
At line 2 of the example code, Local
is instead supposed to be local
.
Here is the correct code:
local camera = workspace.CurrentCamera
local worldPoint = Vector3.new(0, 10, 0)
local vector, onScreen = camera:WorldToScreenPoint(worldPoint)
local screenPoint = Vector2.new(vector.X, vector.Y)
local depth = vector.Z
3 Likes
colbert2677
(ImagineerColbert)
October 3, 2019, 2:08am
#4
The typo on local still exists. As well, there is (now?) a missing image that shows an example of WorldToScreenPoint being used in-game.
1 Like
vaeritae
(vaeritae)
October 7, 2019, 9:25pm
#5
Thank you both for the report, the issues are now fixed
2 Likes
system
(system)
Closed
October 25, 2022, 10:07pm
#6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.