Click or drag to resize
Ab4d.SharpEngine logo

SceneViewPoint3DTo2D Method

Overload List
 NameDescription
Public methodPoint3DTo2D(Vector3, Boolean) Point3DTo2D converts a world space 3D position (as Vector3) to the 2D screen position (as Vector2). To calculate the 2D position for the final UI element, set the adjustByDpiScale to true otherwise the 2D positions will be positioned inside the view defined by SceneView's Width and Height.
Public methodPoint3DTo2D(Vector3, Camera, Single, Single) Point3DTo2D converts a world space 3D point (as Vector3) to the 2D point (as Vector2) on the view that is defined by specified camera, viewWidth and viewHeight.
Top
See Also