engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
IPluginManager类 参考abstract

PluginManager manages available code and content extensions (both loaded and not loaded). 更多...

#include <IPluginManager.h>

Public 成员函数

virtual bool AddPluginSearchPath (const FString &ExtraDiscoveryPath, bool bRefresh=true)=0
 Stores the specified path, utilizing it in future search passes when searching for available plugins. 更多...
 
virtual bool AddToPluginsList (const FString &PluginFilename)=0
 Adds a single plugin to the list of plugins. 更多...
 
virtual bool AreRequiredPluginsAvailable ()=0
 Checks if all the required plug-ins are available. 更多...
 
virtual bool CheckModuleCompatibility (TArray< FString > &OutIncompatibleModules, TArray< FString > &OutIncompatibleEngineModules)=0
 Checks whether modules for the enabled plug-ins are up to date. 更多...
 
 DECLARE_DELEGATE (FUpdatePackageLocalizationCacheDelegate)
 Delegate type for updating the package localization cache. 更多...
 
 DECLARE_DELEGATE_TwoParams (FRegisterMountPointDelegate, const FString &, const FString &)
 Delegate type for mounting content paths. 更多...
 
 DECLARE_EVENT_OneParam (IPluginManager, FNewPluginMountedEvent, IPlugin &)
 Event signature for being notified that a new plugin has been mounted
 
 DECLARE_EVENT_TwoParams (IPluginManager, FLoadingModulesForPhaseEvent, ELoadingPhase::Type, bool)
 Callback for when modules for when LoadModulesForEnabledPlugins() completes loading for a specific phase.
 
virtual PROJECTS_API TSharedPtr< IPlugin > FindPlugin (const FString &Name)=0
 Finds information for an enabled plugin. 更多...
 
virtual const TSet< FString > & GetAdditionalPluginSearchPaths () const =0
 Returns the list of extra directories that are recursively searched for plugins (aside from the engine and project plugin directories).
 
virtual TArray< TSharedRef< IPlugin > > GetDiscoveredPlugins ()=0
 Gets an array of all the discovered plugins. 更多...
 
virtual TArray< TSharedRef< IPlugin > > GetEnabledPlugins ()=0
 Gets an array of all the enabled plugins. 更多...
 
virtual TArray< TSharedRef< IPlugin > > GetEnabledPluginsWithContent () const =0
 Gets an array of all enabled plugins that can have content. 更多...
 
virtual void GetLocalizationPathsForEnabledPlugins (TArray< FString > &OutLocResPaths)=0
 Get the localization paths for all enabled plugins. 更多...
 
virtual TArray< TSharedRef< IPlugin > > GetPluginsWithPakFile () const =0
 Gets an array of plugins that loaded their own content pak file
 
virtual bool LoadModulesForEnabledPlugins (const ELoadingPhase::Type LoadingPhase)=0
 Loads all plug-ins 更多...
 
virtual void MountExplicitlyLoadedPlugin (const FString &PluginName)=0
 Marks an explicitly loaded plugin as enabled, mounts its content and tries to load its modules. 更多...
 
virtual void MountNewlyCreatedPlugin (const FString &PluginName)=0
 Marks a newly created plugin as enabled, mounts its content and tries to load its modules
 
virtual FNewPluginMountedEvent & OnNewPluginMounted ()=0
 Gets an array of plugins that loaded their own content pak file
 
virtual FName PackageNameFromModuleName (FName ModuleName)=0
 Does a reverse lookup to try to figure out what the UObject package name is for a plugin
 
virtual TArray< FPluginStatus > QueryStatusForAllPlugins () const =0
 Gets status about all currently known plug-ins. 更多...
 
virtual void RefreshPluginsList ()=0
 Updates the list of plugins.
 
virtual bool RequiresTempTargetForCodePlugin (const FProjectDescriptor *ProjectDescriptor, const FString &Platform, EBuildConfiguration Configuration, EBuildTargetType TargetType, FText &OutReason)=0
 Determines if a content-only project requires a temporary target due to having a plugin enabled 更多...
 
virtual void SetRegisterMountPointDelegate (const FRegisterMountPointDelegate &Delegate)=0
 Sets the delegate to call to register a new content mount point. 更多...
 
virtual void SetUpdatePackageLocalizationCacheDelegate (const FUpdatePackageLocalizationCacheDelegate &Delegate)=0
 Sets the delegate to call to update the package localization cache. 更多...
 

静态 Public 成员函数

static PROJECTS_API IPluginManager & Get ()
 Static: Access singleton instance. 更多...
 

详细描述

PluginManager manages available code and content extensions (both loaded and not loaded).

成员函数说明

◆ AddPluginSearchPath()

virtual bool IPluginManager::AddPluginSearchPath ( const FString &  ExtraDiscoveryPath,
bool  bRefresh = true 
)
pure virtual

Stores the specified path, utilizing it in future search passes when searching for available plugins.

Optionally refreshes the manager after the new path has been added.

参数
ExtraDiscoveryPathThe path you want searched for additional plugins.
bRefreshSignals the function to refresh the plugin database after the new path has been added
返回
Whether the plugin search path was modified

◆ AddToPluginsList()

virtual bool IPluginManager::AddToPluginsList ( const FString &  PluginFilename)
pure virtual

Adds a single plugin to the list of plugins.

Faster than refreshing all plugins with RefreshPluginsList() when you only want to add one. Does nothing if already in the list.

返回
True if the plugin was added or already in the list. False if it failed to load.

◆ AreRequiredPluginsAvailable()

virtual bool IPluginManager::AreRequiredPluginsAvailable ( )
pure virtual

Checks if all the required plug-ins are available.

If not, will present an error dialog the first time a plug-in is loaded or this function is called.

返回
true if all the required plug-ins are available.

◆ CheckModuleCompatibility()

virtual bool IPluginManager::CheckModuleCompatibility ( TArray< FString > &  OutIncompatibleModules,
TArray< FString > &  OutIncompatibleEngineModules 
)
pure virtual

Checks whether modules for the enabled plug-ins are up to date.

参数
OutIncompatibleModulesArray to receive a list of incompatible module names.
OutIncompatibleEngineModulesArray to receive a list of incompatible engine module names.
返回
true if the enabled plug-in modules are up to date.

◆ DECLARE_DELEGATE()

IPluginManager::DECLARE_DELEGATE ( FUpdatePackageLocalizationCacheDelegate  )

Delegate type for updating the package localization cache.

Used internally by FPackageLocalizationManager code.

◆ DECLARE_DELEGATE_TwoParams()

IPluginManager::DECLARE_DELEGATE_TwoParams ( FRegisterMountPointDelegate  ,
const FString &  ,
const FString &   
)

Delegate type for mounting content paths.

Used internally by FPackageName code.

◆ FindPlugin()

virtual PROJECTS_API TSharedPtr< IPlugin > IPluginManager::FindPlugin ( const FString &  Name)
pure virtual

Finds information for an enabled plugin.

返回
Pointer to the plugin's information, or nullptr.

◆ Get()

static PROJECTS_API IPluginManager & IPluginManager::Get ( )
static

Static: Access singleton instance.

返回
Reference to the singleton object.

◆ GetDiscoveredPlugins()

virtual TArray< TSharedRef< IPlugin > > IPluginManager::GetDiscoveredPlugins ( )
pure virtual

Gets an array of all the discovered plugins.

返回
Array of the discovered plugins.

◆ GetEnabledPlugins()

virtual TArray< TSharedRef< IPlugin > > IPluginManager::GetEnabledPlugins ( )
pure virtual

Gets an array of all the enabled plugins.

返回
Array of the enabled plugins.

◆ GetEnabledPluginsWithContent()

virtual TArray< TSharedRef< IPlugin > > IPluginManager::GetEnabledPluginsWithContent ( ) const
pure virtual

Gets an array of all enabled plugins that can have content.

返回
Array of plugins with IsEnabled() and CanContainContent() both true.

◆ GetLocalizationPathsForEnabledPlugins()

virtual void IPluginManager::GetLocalizationPathsForEnabledPlugins ( TArray< FString > &  OutLocResPaths)
pure virtual

Get the localization paths for all enabled plugins.

参数
OutLocResPathsArray to populate with the localization paths for all enabled plugins.

◆ LoadModulesForEnabledPlugins()

virtual bool IPluginManager::LoadModulesForEnabledPlugins ( const ELoadingPhase::Type  LoadingPhase)
pure virtual

Loads all plug-ins

参数
LoadingPhaseWhich loading phase we're loading plug-in modules from. Only modules that are configured to be loaded at the specified loading phase will be loaded during this call.

◆ MountExplicitlyLoadedPlugin()

virtual void IPluginManager::MountExplicitlyLoadedPlugin ( const FString &  PluginName)
pure virtual

Marks an explicitly loaded plugin as enabled, mounts its content and tries to load its modules.

These plugins are not loaded implicitly, but instead wait for this function to be called.

◆ QueryStatusForAllPlugins()

virtual TArray< FPluginStatus > IPluginManager::QueryStatusForAllPlugins ( ) const
pure virtual

Gets status about all currently known plug-ins.

返回
Array of plug-in status objects.

◆ RequiresTempTargetForCodePlugin()

virtual bool IPluginManager::RequiresTempTargetForCodePlugin ( const FProjectDescriptor *  ProjectDescriptor,
const FString &  Platform,
EBuildConfiguration  Configuration,
EBuildTargetType  TargetType,
FText &  OutReason 
)
pure virtual

Determines if a content-only project requires a temporary target due to having a plugin enabled

参数
ProjectDescriptorThe project being built
PlatformThe platform the target is being built for
ConfigurationThe configuration being built
TargetTypeThe type of target being built
OutReasonIf a temporary target is required, receives a message indicating why
返回
True if the project requires a temp target to be generated

◆ SetRegisterMountPointDelegate()

virtual void IPluginManager::SetRegisterMountPointDelegate ( const FRegisterMountPointDelegate &  Delegate)
pure virtual

Sets the delegate to call to register a new content mount point.

This is used internally by the plug-in manager system and should not be called by you. This is registered at application startup by FPackageName code in CoreUObject.

参数
DelegateThe delegate to that will be called when plug-in manager needs to register a mount point

◆ SetUpdatePackageLocalizationCacheDelegate()

virtual void IPluginManager::SetUpdatePackageLocalizationCacheDelegate ( const FUpdatePackageLocalizationCacheDelegate &  Delegate)
pure virtual

Sets the delegate to call to update the package localization cache.

This is used internally by the plug-in manager system and should not be called by you. This is registered at application startup by FPackageLocalizationManager code in CoreUObject.

参数
DelegateThe delegate to that will be called when plug-in manager needs to update the package localization cache

该类的文档由以下文件生成: