TypedElements.EnableSMInstanceElements

TypedElements.EnableSMInstanceElements

#Overview

name: TypedElements.EnableSMInstanceElements

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/Elements/SMInstance/SMInstanceElementData.cpp:15

Scope (from outer to inner):

file
namespace    SMInstanceElementDataUtil

Source code excerpt:

static int32 GEnableSMInstanceElements = 1;
static FAutoConsoleVariableRef CVarEnableSMInstanceElements(
	TEXT("TypedElements.EnableSMInstanceElements"),
	GEnableSMInstanceElements,
	TEXT("Is support for static mesh instance elements enabled?"),
	FConsoleVariableDelegate::CreateLambda([](IConsoleVariable* InVariable)
	{
		FGlobalComponentRecreateRenderStateContext Context;
		SMInstanceElementDataUtil::OnSMInstanceElementsEnabledChanged().Broadcast();

#Loc: <Workspace>/Engine/Source/Runtime/Engine/Public/Elements/SMInstance/SMInstanceElementData.h:32

Scope (from outer to inner):

file
namespace    SMInstanceElementDataUtil

Source code excerpt:

/**
 * Test whether static mesh instance elements are currently enabled?
 * @note Controlled by the CVar: "TypedElements.EnableSMInstanceElements".
 */
ENGINE_API bool SMInstanceElementsEnabled();

ENGINE_API FSimpleMulticastDelegate& OnSMInstanceElementsEnabledChanged();

/**
 * Get the static mesh instance manager for the given instance.
 * @return The static mesh instance manager, or null if this instance cannot be managed.
 */