Skip to content

Commit cf4d2e7

Browse files
ap4123IgnisRBX
andauthored
Update content/en-us/reference/engine/classes/Camera.yaml
Co-authored-by: IgnisRBX <[email protected]>
1 parent 64f5fcd commit cf4d2e7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

content/en-us/reference/engine/classes/Camera.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1193,12 +1193,11 @@ methods:
11931193
position in core UI coordinates, please use
11941194
`Class.Camera:ScreenPointToRay()`.
11951195
1196-
This function only works for the current Workspace camera. Other cameras,
1197-
such as those you create for a `Class.ViewportFrame`, have an initial
1196+
Also note that this function only works for the `Class.Workspace.CurrentCamera` camera.
1197+
Other cameras, such as those you create for a `Class.ViewportFrame`, have an initial
11981198
viewport size of `(1, 1)` and are only updated after you set them to
1199-
`Class.Workspace.CurrentCamera`. The mismatch in viewport size causes the
1200-
camera to return a ray with an incorrect `Datatype.Ray.Direction`.
1201-
1199+
`Class.Workspace.CurrentCamera|CurrentCamera`. The mismatch in viewport size causes
1200+
the camera to return a ray with an incorrect `Datatype.Ray.Direction`.
12021201
This function can be used in conjunction with the
12031202
`Class.Camera.ViewportSize` property to create a ray from the centre of
12041203
the screen, for example:

0 commit comments

Comments
 (0)