FPluginUtils::CreateAndMountNewPlugin

Helper to create and mount a new plugin.

Windows
MacOS
Linux

References

Module

PluginUtils

Header

/Engine/Plugins/Developer/PluginUtils/Source/PluginUtils/Public/PluginUtils.h

Include

#include "PluginUtils.h"

Source

/Engine/Plugins/Developer/PluginUtils/Source/PluginUtils/Private/PluginUtils.cpp

Syntax

static TSharedPtr< IPlugin > CreateAndMountNewPlugin
(
    const FString & PluginName,
    const FString & PluginLocation,
    const FNewPluginParams & CreationParams,
    const FMountPluginParams & MountParams,
    FText & FailReason
)

Remarks

Helper to create and mount a new plugin.

Returns

The newly created plugin. If something goes wrong during the creation process, the plugin folder gets deleted and null is returned. @note Will fail if the plugin already exists

Parameters

Parameter

Description

PluginName

Plugin name

PluginLocation

Directory that contains the plugin folder

CreationParams

Plugin creation parameters

MountParams

Plugin mounting parameters

FailReason

Reason the plugin creation/mount failed

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