|
CameraUtilsGetOrthographicScreenSize Method |
GetOrthographicScreenSize calculates a size on screen (in same units as viewSize - without DPI scale)
of a size in 3D space (worldSize) that is shown with orthographic camera with cameraWidth and in SceneView with viewSize.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public static Vector2 GetOrthographicScreenSize(
Vector2 worldSize,
float cameraWidth,
Vector2 viewport3DSize
)
Parameters
- worldSize Vector2
- size in 3D space as Vector2
- cameraWidth Single
- camera's width
- viewport3DSize Vector2
- SceneView's size as Vector2
Return Value
Vector2size on screen as Vector2
See Also