IProjectManager::SetPluginEnabled

Sets whether a plugin is enabled for the current project configuration.

Choose your operating system:

Windows

macOS

Linux

References

Module

Projects

Header

/Engine/Source/Runtime/Projects/Public/Interfaces/IProjectManager.h

Include

#include "Interfaces/IProjectManager.h"

Syntax

bool SetPluginEnabled
(
    const FString & PluginName,
    bool bEnabled,
    FText & OutFailReason
)

Remarks

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. @note Use IsCurrentProjectDirty() to tell whether the project was actually modified.

Returns

False on failure to update the current project descriptor.

Parameters

Parameter

Description

PluginName

Name of the plugin

bEnabled

Whether to enable or disable the plugin

OutFailReason

On failure, gives an error message