IProjectManager::SetPluginEnabled

Sets whether a plugin is enabled, and updates the current project descriptor.

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, and updates the current project descriptor. Does not save to disk and may require restarting to load it.

Returns

True if the plugin has been marked as enabled, and the project descriptor has been updated.

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