ToggleLight

ToggleLight

#Overview

name: ToggleLight

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

It is referenced in 2 C++ source files.

#Summary

#References in C++ code

#Callsites

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

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/Components/LightComponent.cpp:1657

Scope: file

Source code excerpt:


static FAutoConsoleCommand ToggleLightCmd(
	TEXT("ToggleLight"),
	TEXT("Toggles all lights whose name contains the specified string"),
	FConsoleCommandWithArgsDelegate::CreateStatic(ToggleLight),
	ECVF_Cheat
	);

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Private/Components/LightComponent.cpp:1631

Scope (from outer to inner):

file
function     static void ToggleLight

Source code excerpt:

}

static void ToggleLight(const TArray<FString>& Args)
{
	for (TObjectIterator<ULightComponent> It; It; ++It)
	{
		ULightComponent* Light = *It;
		if (Light->Mobility != EComponentMobility::Static)
		{