Navigation
API > API/Runtime > API/Runtime/Projects > API/Runtime/Projects/IProjectManager
Description
Sets whether a plugin is enabled for the current project configuration. Potentially updates the current project descriptor, but does not save to disk and may require restarting to load it.
Use IsCurrentProjectDirty() to tell whether the project was actually modified.
| Name | SetPluginEnabled |
| Type | function |
| Header File | /Engine/Source/Runtime/Projects/Public/Interfaces/IProjectManager.h |
| Include Path | #include "Interfaces/IProjectManager.h" |
bool SetPluginEnabled
(
const FString & PluginName,
bool bEnabled,
FText & OutFailReason
)
False on failure to update the current project descriptor.
Parameters
| Name | Remarks |
|---|---|
| PluginName | Name of the plugin |
| bEnabled | Whether to enable or disable the plugin |
| OutFailReason | On failure, gives an error message |