Click or drag to resize

CameraSetOrthogonal Method

Sets the camera projection to orthogonal mode (see ), by specifying a size, and the z_near and z_far clip planes in world-space units. (As a hint, 2D games often use this projection, with values specified in pixels.)

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void SetOrthogonal(
	float size,
	float zNear,
	float zFar
)

Parameters

size
Type: SystemSingle

[Missing <param name="size"/> documentation for "M:Godot.Camera.SetOrthogonal(System.Single,System.Single,System.Single)"]

zNear
Type: SystemSingle

[Missing <param name="zNear"/> documentation for "M:Godot.Camera.SetOrthogonal(System.Single,System.Single,System.Single)"]

zFar
Type: SystemSingle

[Missing <param name="zFar"/> documentation for "M:Godot.Camera.SetOrthogonal(System.Single,System.Single,System.Single)"]

See Also