Navigation
API > API/Plugins > API/Plugins/PluginUtils
| Name | FPluginUtils |
| Type | class |
| Header File | /Engine/Plugins/Developer/PluginUtils/Source/PluginUtils/Public/PluginUtils.h |
| Include Path | #include "PluginUtils.h" |
Syntax
class FPluginUtils
Structs
| Name | Remarks |
|---|---|
| FLoadPluginParams | Parameters for loading/mounting a plugin |
| FMountPluginParams | Parameters for mounting a plugin. |
| FNewPluginParams | Parameters for creating a new plugin. |
| FNewPluginParamsWithDescriptor | Parameters for creating a new plugin. |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool AddToPluginSearchPathIfNeeded
(
const FString& Dir, |
Adds a directory to the list of paths that are recursively searched for plugins, if that directory isn't already under the search paths. | PluginUtils.h | |
static TSharedPtr< IPlugin > CreateAndLoadNewPlugin
(
const FString& PluginName, |
Helper to create and load a new plugin | PluginUtils.h | |
static TSharedPtr< IPlugin > CreateAndLoadNewPlugin
(
const FString& PluginFilePath, |
Helper to create and load a new plugin | PluginUtils.h | |
static TSharedPtr< IPlugin > CreateAndLoadNewPlugin
(
const FString& PluginFilePath, |
Helper to create and load a new plugin | PluginUtils.h | |
static TSharedPtr< IPlugin > CreateAndLoadNewPlugin
(
const FString& PluginName, |
Helper to create and load a new plugin | PluginUtils.h | |
static TSharedPtr< IPlugin > CreateAndLoadNewPlugin
(
const FString& PluginName, |
Helper to create and load a new plugin | PluginUtils.h | |
static PRAGMA_DISABLE_DEPRECATION_WARNINGSTSharedPtr< IPlugin > CreateAndMountNewPlugin
(
const FString& PluginName, |
Helper to create and mount a new plugin. Will fail if the plugin already exists | PluginUtils.h | |
static PRAGMA_DISABLE_DEPRECATION_WARNINGSTSharedPtr< IPlugin > CreateAndMountNewPlugin
(
const FString& PluginName, |
Helper to create and mount a new plugin. Will fail if the plugin already exists | PluginUtils.h | |
static TSharedPtr< IPlugin > FindLoadedPlugin
(
const FString& PluginDescriptorFileName |
Finds a loaded plugin from a plugin descriptor file path | PluginUtils.h | |
static TSharedPtr< IPlugin > FindPluginFromPackagePath
(
FStringView PackagePath |
PluginUtils.h | ||
static TSharedPtr< IPlugin > FindPluginFromPackagePath
(
FName PackagePath |
Finds the plugin that contains the specified package, if any | PluginUtils.h | |
static FString GetPluginContentFolder
(
const FString& PluginLocation, |
Returns the plugin Content folder. | PluginUtils.h | |
static FString GetPluginContentFolder
(
const FString& PluginFilePath, |
Returns the plugin Content folder from its uplugin file path. | PluginUtils.h | |
| Returns the uplugin file path. | PluginUtils.h | ||
static FString GetPluginFolder
(
const FString& PluginFilePath, |
Returns the plugin folder from its uplugin file path. | PluginUtils.h | |
static FString GetPluginFolder
(
const FString& PluginLocation, |
Returns the plugin folder. | PluginUtils.h | |
| Returns the plugin name from its uplugin file path. | PluginUtils.h | ||
static FString GetPluginResourcesFolder
(
const FString& PluginLocation, |
Returns the plugin Resources folder. | PluginUtils.h | |
static FString GetPluginResourcesFolder
(
const FString& PluginFilePath, |
Returns the plugin Resources folder from its uplugin file path. | PluginUtils.h | |
| Returns whether the specified plugin name is valid, regardless of whether it's already used | PluginUtils.h | ||
static TSharedPtr< IPlugin > LoadPlugin
(
const FString& PluginName, |
Load/mount the specified plugin | PluginUtils.h | |
static TSharedPtr< IPlugin > LoadPlugin
(
const FString& PluginFilePath, |
Load/mount the specified plugin | PluginUtils.h | |
static TSharedPtr< IPlugin > LoadPlugin
(
const FString& PluginFilePath |
Load/mount the specified plugin | PluginUtils.h | |
static TSharedPtr< IPlugin > LoadPlugin
(
const FString& PluginName, |
Load/mount the specified plugin | PluginUtils.h | |
static PRAGMA_DISABLE_DEPRECATION_WARNINGSTSharedPtr< IPlugin > MountPlugin
(
const FString& PluginName, |
Load/mount the specified plugin. | PluginUtils.h | |
static bool UnloadPlugin
(
const TSharedRef< IPlugin >& Plugin, |
Unload assets from the specified plugin and unmount it | PluginUtils.h | |
static bool UnloadPlugin
(
const FString& PluginName, |
Unload assets from the specified plugin and unmount it | PluginUtils.h | |
static bool UnloadPluginAssets
(
const TSharedRef< IPlugin >& Plugin, |
Unload assets from the specified plugin but does not unmount it | PluginUtils.h | |
static bool UnloadPluginAssets
(
const FString& PluginName, |
Unload assets from the specified plugin but does not unmount it | PluginUtils.h | |
static bool UnloadPlugins
(
const TConstArrayView< FString > PluginNames, |
Unload assets from the specified plugins and unmount them | PluginUtils.h | |
static bool UnloadPlugins
(
const TConstArrayView< TSharedRef< IPlugin > > Plugins, |
Unload assets from the specified plugins and unmount them | PluginUtils.h | |
static bool UnloadPluginsAssets
(
const TConstArrayView< TSharedRef< IPlugin > > Plugins, |
Unload assets from the specified plugins but does not unmount them | PluginUtils.h | |
static bool UnloadPluginsAssets
(
const TConstArrayView< FString > PluginNames, |
Unload assets from the specified plugin but does not unmount them | PluginUtils.h | |
static bool UnloadPluginsAssets
(
const TSet< FString >& PluginNames, |
Unload assets from the specified plugin but does not unmount them | PluginUtils.h | |
| Validate that the plugin name is valid, that the name isn't already used by a registered plugin and optionally that there isn't an unregistered plugin with that name that exists at the plugin folder | PluginUtils.h | ||
| Validate that the plugin name is valid, that the name isn't already used by a registered plugin and optionally that there isn't an unregistered plugin with that name that exists at the specified location. | PluginUtils.h |