Click or drag to resize

VisualServerCameraSetPerspective Method

Sets camera to use perspective projection. Objects on the screen becomes smaller when they are far away.

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

Parameters

camera
Type: GodotRID

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

fovyDegrees
Type: SystemSingle

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

zNear
Type: SystemSingle

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

zFar
Type: SystemSingle

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

See Also