Click or drag to resize

CameraProjectPosition Method

Returns the 3D point in worldspace that maps to the given 2D coordinate in the Viewport rectangle on a plane that is the given z_depth distance into the scene away from the camera.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector3 ProjectPosition(
	Vector2 screenPoint,
	float zDepth
)

Parameters

screenPoint
Type: GodotVector2

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

zDepth
Type: SystemSingle

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

Return Value

Type: Vector3

[Missing <returns> documentation for "M:Godot.Camera.ProjectPosition(Godot.Vector2,System.Single)"]

See Also