UEditorAssetLibrary::DuplicateLoadedAsset

Duplicate an asset from the Content Browser that is already loaded. Will try to checkout the file.

Windows
MacOS
Linux

References

Module

EditorScriptingUtilities

Header

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Public/EditorAssetLibrary.h

Include

#include "EditorAssetLibrary.h"

Source

/Engine/Plugins/Editor/EditorScriptingUtilities/Source/EditorScriptingUtilities/Private/EditorAssetLibrary.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Editor Scripting | Asset")
static UObject * DuplicateLoadedAsset
(
    UObject * SourceAsset,
    const FString & DestinationAssetPath
)

Remarks

Duplicate an asset from the Content Browser that is already loaded. Will try to checkout the file.

Returns

The duplicated object if the operation succeeds

Parameters

Parameter

Description

SourceAsset

Asset that we want to copy from.

DestinationAssetPath

Asset Path of the duplicated asset.

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