bIsShowDuplicates
bIsShowDuplicates
#Overview
name: bIsShowDuplicates
The value of this variable can be defined or overridden in .ini config files. 1
.ini config file referencing this setting variable.
It is referenced in 3
C++ source files.
#Summary
#Usage in the C++ source code
The purpose of bIsShowDuplicates is to control whether duplicate asset references are displayed in the Reference Viewer tool within the Unreal Engine editor. This setting is part of the asset management and visualization system.
The bIsShowDuplicates variable is primarily used in the Asset Manager Editor plugin, specifically within the Reference Viewer feature. This plugin is designed to help developers manage and visualize asset dependencies within their Unreal Engine projects.
The value of this variable is set through the UReferenceViewerSettings class, which is likely initialized from a configuration file due to the UPROPERTY(config) decorator. It can be modified at runtime using the SetShowDuplicatesEnabled() function, which also saves the new value to the configuration.
This variable interacts with other settings in the UReferenceViewerSettings class, such as bIsShowEditorOnlyReferences and bIsShowFilteredPackagesOnly, which together determine the behavior and display of the Reference Viewer.
Developers should be aware that changing this setting will affect the visualization of asset references in the Reference Viewer. When enabled, it will show duplicate references, which can be useful for identifying redundant dependencies but may also increase visual complexity.
Best practices when using this variable include:
- Consider the project’s size and complexity when deciding whether to show duplicates, as it may impact performance in large projects.
- Use it in conjunction with other Reference Viewer settings to get a comprehensive view of asset dependencies.
- Be mindful of the potential impact on editor performance when enabling this option in projects with many assets and complex reference chains.
- Use the SetShowDuplicatesEnabled() function to change the setting programmatically and ensure the change is saved to the configuration.
#Setting Variables
#References In INI files
Location: <Workspace>/Engine/Config/BaseEditorPerProjectUserSettings.ini:981, section: [/Script/AssetManagerEditor.ReferenceViewerSettings]
- INI Section:
/Script/AssetManagerEditor.ReferenceViewerSettings
- Raw value:
True
- Is Array:
False
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Plugins/Editor/AssetManagerEditor/Source/AssetManagerEditor/Private/ReferenceViewer/ReferenceViewerSettings.cpp:41
Scope (from outer to inner):
file
function bool UReferenceViewerSettings::IsShowDuplicates
Source code excerpt:
bool UReferenceViewerSettings::IsShowDuplicates() const
{
return bIsShowDuplicates;
}
bool UReferenceViewerSettings::IsShowEditorOnlyReferences() const
{
return bIsShowEditorOnlyReferences;
}
#Loc: <Workspace>/Engine/Plugins/Editor/AssetManagerEditor/Source/AssetManagerEditor/Private/ReferenceViewer/ReferenceViewerSettings.cpp:118
Scope (from outer to inner):
file
function void UReferenceViewerSettings::SetShowDuplicatesEnabled
Source code excerpt:
void UReferenceViewerSettings::SetShowDuplicatesEnabled(bool bNewEnabled)
{
bIsShowDuplicates = bNewEnabled;
SaveConfig();
}
void UReferenceViewerSettings::SetShowEditorOnlyReferencesEnabled(bool bNewEnabled)
{
bIsShowEditorOnlyReferences = bNewEnabled;
#Loc: <Workspace>/Engine/Plugins/Editor/AssetManagerEditor/Source/AssetManagerEditor/Public/ReferenceViewer/ReferenceViewerSettings.h:173
Scope (from outer to inner):
file
class class UReferenceViewerSettings : public UObject
Source code excerpt:
/* Whether to show duplicate asset references */
UPROPERTY(config)
bool bIsShowDuplicates;
/* Whether to filter the search results or just select them */
UPROPERTY(config)
bool bIsShowFilteredPackagesOnly;
/* Whether to show the nodes in a compact (no thumbnail) view */