UEditorAssetLibrary::DoesDirectoryHaveAssets

Check if there any asset that exist in the directory.

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 bool DoesDirectoryHaveAssets
(
    const FString & DirectoryPath,
    bool bRecursive
)

Remarks

Check if there any asset that exist in the directory.

Returns

True if there is any assets.

Parameters

Parameter

Description

DirectoryPath

Long Path Name of the directory.

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