FGenericPlatformMisc::SetEnvironmentVar

Sets an environment variable to the local process's environment

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h

Include

#include "GenericPlatform/GenericPlatformMisc.h"

Source

/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp

Syntax

static void SetEnvironmentVar
(
    const TCHAR * VariableName,
    const TCHAR * Value
)

Remarks

Sets an environment variable to the local process's environment

Parameters

Parameter

Description

VariableName

The name of the variable (ie "Path")

Value

The string to set the variable to.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss