Click or drag to resize

OSSetEnvironment Method

Sets the value of the environment variable variable to value. The environment variable will be set for the Godot process and any process executed with Execute(String, String, Boolean, Array, Boolean) after running SetEnvironment(String, String). The environment variable will not persist to processes run after the Godot process was terminated.

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 bool SetEnvironment(
	string variable,
	string value
)

Parameters

variable
Type: SystemString

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

value
Type: SystemString

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

Return Value

Type: Boolean

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

See Also