FGenericPlatformMisc::GetEnvironmentVariable

Retrieve a environment variable from the system

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 FString GetEnvironmentVariable
(
    const TCHAR * VariableName
)

Remarks

Retrieve a environment variable from the system

Returns

Value of the variable, or an empty string if not set.

Parameters

Parameter

Description

VariableName

The name of the variable (ie "Path")

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