Click or drag to resize

VisualServerCameraSetOrthogonal Method

Sets camera to use orthogonal projection, also known as orthographic projection. Objects remain the same size on the screen no matter how far away they are.

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

Parameters

camera
Type: GodotRID

[Missing <param name="camera"/> documentation for "M:Godot.VisualServer.CameraSetOrthogonal(Godot.RID,System.Single,System.Single,System.Single)"]

size
Type: SystemSingle

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

zNear
Type: SystemSingle

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

zFar
Type: SystemSingle

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

See Also