IProjectManager::SetPluginEnabled

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

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss