worldToScreenPoint
Deprecated
Use view.worldToScreen(point)
Replace with
view.worldToScreen(point)
Content copied to clipboard
Convert a point from world space into screen space.
The X value is negative when the point is left of the viewport, between 0 and the width of the io.github.sceneview.SceneView when the point is within the viewport, and greater than the width when the point is to the right of the viewport.
The Y value is negative when the point is below the viewport, between 0 and the height of the io.github.sceneview.SceneView when the point is within the viewport, and greater than the height when the point is above the viewport.
The Z value is always 0 since the return value is a 2D coordinate.
Return
a new vector that represents the point in screen-space.
Parameters
point
the point in world space to convert