Navigation
Unreal Engine C++ API Reference > Plugins > PluginUtils
References
Module | PluginUtils |
Header | /Engine/Plugins/Developer/PluginUtils/Source/PluginUtils/Public/PluginUtils.h |
Include | #include "PluginUtils.h" |
Syntax
class FPluginUtils
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
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. |
![]() ![]() |
TSharedPtr< IPlugin > | CreateAndLoadNewPlugin
(
const FString& PluginName, |
Helper to create and load a new plugin |
![]() ![]() |
TSharedPtr< IPlugin > | CreateAndLoadNewPlugin
(
const FString& PluginName, |
Helper to create and load a new plugin |
![]() ![]() |
TSharedPtr< IPlugin > | FindLoadedPlugin
(
const FString& PluginDescriptorFileName |
Finds a loaded plugin from a plugin descriptor file path |
![]() ![]() |
FString | GetPluginContentFolder
(
const FString& PluginLocation, |
Returns the plugin Content folder. |
![]() ![]() |
FString | GetPluginFilePath
(
const FString& PluginLocation, |
Returns the uplugin file path. |
![]() ![]() |
FString | GetPluginFolder
(
const FString& PluginLocation, |
Returns the plugin folder. |
![]() ![]() |
FString | GetPluginResourcesFolder
(
const FString& PluginLocation, |
Returns the plugin Resources folder. |
![]() ![]() |
bool | IsValidPluginName
(
const FString& PluginName, |
Returns whether the specified plugin name is valid, regardless of whether it's already used |
![]() ![]() |
TSharedPtr< IPlugin > | LoadPlugin
(
const FString& PluginName, |
Load/mount the specified plugin |
![]() ![]() |
TSharedPtr< IPlugin > | LoadPlugin
(
const FString& PluginName, |
Load/mount the specified plugin |
![]() ![]() |
TSharedPtr< IPlugin > | LoadPlugin
(
const FString& PluginFileName, |
Load/mount the specified plugin |
![]() ![]() |
TSharedPtr< IPlugin > | LoadPlugin
(
const FString& PluginFileName |
Load/mount the specified plugin |
![]() ![]() |
bool | UnloadPlugin
(
const TSharedRef< IPlugin >& Plugin, |
Unload assets from the specified plugin and unmount it |
![]() ![]() |
bool | UnloadPlugin
(
const FString& PluginName, |
Unload assets from the specified plugin and unmount it |
![]() ![]() |
bool | UnloadPluginAssets
(
const TSharedRef< IPlugin >& Plugin, |
Unload assets from the specified plugin but does not unmount it |
![]() ![]() |
bool | UnloadPluginAssets
(
const FString& PluginName, |
Unload assets from the specified plugin but does not unmount it |
![]() ![]() |
bool | UnloadPlugins
(
const TConstArrayView< TSharedRef< IPlugin >> Plugins, |
Unload assets from the specified plugins and unmount them |
![]() ![]() |
bool | UnloadPlugins
(
const TConstArrayView< FString > PluginNames, |
Unload assets from the specified plugins and unmount them |
![]() ![]() |
bool | UnloadPluginsAssets
(
const TSet< FString >& PluginNames, |
Unload assets from the specified plugin but does not unmount them |
![]() ![]() |
bool | UnloadPluginsAssets
(
const TConstArrayView< TSharedRef< IPlugin >> Plugins, |
Unload assets from the specified plugins but does not unmount them |
![]() ![]() |
bool | UnloadPluginsAssets
(
const TConstArrayView< FString > PluginNames, |
Unload assets from the specified plugin but does not unmount them |
![]() ![]() |
bool | ValidateNewPluginNameAndLocation
(
const FString& PluginName, |
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. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
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. |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
PRAGMA_DISABLE_DEPRECATION_WARNINGSTSharedPtr< IPlugin > | CreateAndMountNewPlugin
(
const FString& PluginName, |
CreateAndMountNewPlugin is deprecated; please use CreateAndLoadNewPlugin instead |
![]() ![]() |
PRAGMA_DISABLE_DEPRECATION_WARNINGSTSharedPtr< IPlugin > | CreateAndMountNewPlugin
(
const FString& PluginName, |
CreateAndMountNewPlugin is deprecated; please use CreateAndLoadNewPlugin instead |
![]() ![]() |
PRAGMA_DISABLE_DEPRECATION_WARNINGSTSharedPtr< IPlugin > | MountPlugin
(
const FString& PluginName, |
MountPlugin is deprecated; please use LoadPlugin instead |