Click or drag to resize

OSGetEnvironment Method

Returns the value of an environment variable. Returns an empty string if the environment variable doesn't exist.

Note: Double-check the casing of variable. Environment variable names are case-sensitive on all platforms except Windows.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static string GetEnvironment(
	string variable
)

Parameters

variable
Type: SystemString

[Missing <param name="variable"/> documentation for "M:Godot.OS.GetEnvironment(System.String)"]

Return Value

Type: String

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

See Also