fx.Niagara.Debug.SpawnComponent

fx.Niagara.Debug.SpawnComponent

#Overview

name: fx.Niagara.Debug.SpawnComponent

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/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraDebugHud.cpp:231

Scope (from outer to inner):

file
namespace    NiagaraDebugLocal

Source code excerpt:

	TArray<TWeakObjectPtr<UNiagaraComponent>> GDebugSpawnedComponents;
	static FAutoConsoleCommandWithWorldAndArgs CmdSpawnComponent(
		TEXT("fx.Niagara.Debug.SpawnComponent"),
		TEXT("Spawns a NiagaraComponent using the given parameters"),
		FConsoleCommandWithWorldAndArgsDelegate::CreateLambda(
			[](const TArray<FString>& Args, UWorld* World)
			{
				// While it works, not sure this makes sense for anything other than PIE
				if (!World->IsGameWorld() && !World->IsPlayInEditor())