FPluginUtils::AddToPluginSearchPathIfNeeded

Adds a directory to the list of paths that are recursively searched for plugins, if that directory isn't already under the search paths.

Windows
MacOS
Linux

References

Module

PluginUtils

Header

/Engine/Plugins/Developer/PluginUtils/Source/PluginUtils/Public/PluginUtils.h

Include

#include "PluginUtils.h"

Source

/Engine/Plugins/Developer/PluginUtils/Source/PluginUtils/Private/PluginUtils.cpp

Syntax

static bool AddToPluginSearchPathIfNeeded
(
    const FString & Dir,
    bool bRefreshPlugins,
    bool bUpdateProjectFile
)

Remarks

Adds a directory to the list of paths that are recursively searched for plugins, if that directory isn't already under the search paths.

Returns

Whether the plugin search path was modified

Parameters

Parameter

Description

Dir

Directory to add (doesn't have to be an absolute or normalized path)

bRefreshPlugins

Whether to refresh plugins if the search path list gets modified

bUpdateProjectFile

Whether to update the project additional plugin directories (persistently saved in uproject file) if needed

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss