UEditorAssetLibrary::LoadAsset

Load an asset from the Content Browser.

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 * LoadAsset
(
    const FString & AssetPath
)

Remarks

Load an asset from the Content Browser. It will verify if the object is already loaded and only load it if it's necessary. Load operations

Returns

Found or loaded asset.

Parameters

Parameter

Description

AssetPath

Asset Path of the asset (that is not a level).

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