dp.Override.Restore

dp.Override.Restore

#Overview

name: dp.Override.Restore

This variable is created as a Console Variable (cvar).

It is referenced in 1 C++ source file.

#Summary

#References in C++ code

#Callsites

This variable is referenced in the following C++ source code:

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/DeviceProfiles/DeviceProfileManager.cpp:84

Scope (from outer to inner):

file
function     UDeviceProfileManager& UDeviceProfileManager::Get

Source code excerpt:


		IConsoleManager::Get().RegisterConsoleCommand(
			TEXT("dp.Override.Restore"),
			TEXT("Restores any cvars set by dp.Override to their previous value"),
			FConsoleCommandDelegate::CreateLambda([]()
			{
				UDeviceProfileManager::Get().RestoreDefaultDeviceProfile();
			}),
			ECVF_Default
		);

		InitializeSharedSamplerStates();

#if ALLOW_OTHER_PLATFORM_CONFIG
		FCoreDelegates::GatherDeviceProfileCVars.BindLambda([](const FString& DeviceProfileName) { return UDeviceProfileManager::Get().GatherDeviceProfileCVars(DeviceProfileName, EDeviceProfileMode::DPM_CacheValues); });
#endif