BP.EnableNamespaceImportingFeatures
BP.EnableNamespaceImportingFeatures
#Overview
name: BP.EnableNamespaceImportingFeatures
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Enables namespace importing features in the Blueprint editor (experimental).
It is referenced in 4
C++ source files.
#Summary
#Usage in the C++ source code
The purpose of BP.EnableNamespaceImportingFeatures
is to enable namespace importing features in the Blueprint editor. This is an experimental feature that affects how namespaces are handled in Blueprints.
This setting variable is primarily used in the Blueprint editor subsystem, specifically within the Kismet module. It’s part of the Blueprint namespace handling functionality.
The value of this variable is set through a console variable (CVar) system. It’s initialized as false by default, indicating that the feature is disabled unless explicitly enabled.
The associated variable CVarBPEnableNamespaceImportingFeatures
is directly linked to BP.EnableNamespaceImportingFeatures
. They share the same value and purpose.
Developers should be aware that:
- This feature is experimental, as indicated in the description.
- It’s part of a larger set of namespace-related features in the Blueprint editor.
- The value can be changed at runtime through the console variable system.
Best practices when using this variable include:
- Only enable it if you specifically need namespace importing features in Blueprints.
- Be cautious when using it in production environments, as it’s marked as experimental.
- Consider the implications on existing Blueprints and naming conventions in your project before enabling it.
Regarding the associated variable CVarBPEnableNamespaceImportingFeatures
:
- It’s the C++ representation of the console variable.
- It’s used to get and set the value of the feature flag programmatically.
- It’s refreshed along with other namespace-related settings in the
FBlueprintNamespaceHelper::RefreshEditorFeatureConsoleFlags
function. - Its value is synchronized with the corresponding setting in
BlueprintEditorSettings
.
Developers should use CVarBPEnableNamespaceImportingFeatures
when they need to check or modify the state of this feature within C++ code. They should be aware that changes to this variable will affect the behavior of namespace importing in the Blueprint editor.
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Source/Editor/Kismet/Private/BlueprintNamespaceHelper.cpp:38
Scope: file
Source code excerpt:
static TAutoConsoleVariable<bool> CVarBPEnableNamespaceImportingFeatures(
TEXT("BP.EnableNamespaceImportingFeatures"),
false,
TEXT("Enables namespace importing features in the Blueprint editor (experimental)."));
static TAutoConsoleVariable<bool> CVarBPImportParentClassNamespaces(
TEXT("BP.ImportParentClassNamespaces"),
false,
#Associated Variable and Callsites
This variable is associated with another variable named CVarBPEnableNamespaceImportingFeatures
. They share the same value. See the following C++ source code.
#Loc: <Workspace>/Engine/Source/Editor/Kismet/Private/BlueprintNamespaceHelper.cpp:37
Scope: file
Source code excerpt:
);
static TAutoConsoleVariable<bool> CVarBPEnableNamespaceImportingFeatures(
TEXT("BP.EnableNamespaceImportingFeatures"),
false,
TEXT("Enables namespace importing features in the Blueprint editor (experimental)."));
static TAutoConsoleVariable<bool> CVarBPImportParentClassNamespaces(
TEXT("BP.ImportParentClassNamespaces"),
#Loc: <Workspace>/Engine/Source/Editor/Kismet/Private/BlueprintNamespaceHelper.cpp:260
Scope (from outer to inner):
file
function void FBlueprintNamespaceHelper::RefreshEditorFeatureConsoleFlags
Source code excerpt:
InitCVarFlag(CVarBPEnableNamespaceFilteringFeatures.AsVariable(), BlueprintEditorSettings->bEnableNamespaceFilteringFeatures);
InitCVarFlag(CVarBPEnableNamespaceImportingFeatures.AsVariable(), BlueprintEditorSettings->bEnableNamespaceImportingFeatures);
InitCVarFlag(CVarBPImportParentClassNamespaces.AsVariable(), BlueprintEditorSettings->bInheritImportedNamespacesFromParentBP);
bIsInitialized = true;
}
// Update console variables to match current Blueprint editor settings.
#Loc: <Workspace>/Engine/Source/Editor/Kismet/Private/BlueprintNamespaceHelper.cpp:278
Scope (from outer to inner):
file
function void FBlueprintNamespaceHelper::RefreshEditorFeatureConsoleFlags
Source code excerpt:
SetCVarFlag(CVarBPEnableNamespaceFilteringFeatures.AsVariable(), BlueprintEditorSettings->bEnableNamespaceFilteringFeatures);
SetCVarFlag(CVarBPEnableNamespaceImportingFeatures.AsVariable(), BlueprintEditorSettings->bEnableNamespaceImportingFeatures);
SetCVarFlag(CVarBPImportParentClassNamespaces.AsVariable(), BlueprintEditorSettings->bInheritImportedNamespacesFromParentBP);
}
}
#undef LOCTEXT_NAMESPACE