Click or drag to resize

OSGetScreenSize Method

Returns the dimensions in pixels of the specified screen. If screen is [/code]-1[/code] (the default value), the current screen will be used.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static Vector2 GetScreenSize(
	int screen = -1
)

Parameters

screen (Optional)
Type: SystemInt32

[Missing <param name="screen"/> documentation for "M:Godot.OS.GetScreenSize(System.Int32)"]

Return Value

Type: Vector2

[Missing <returns> documentation for "M:Godot.OS.GetScreenSize(System.Int32)"]

See Also