UAssetManager::GetContentRootPathFromPackageName

Returns the root path for the package name or path (i.e. /Game/MyPackage would return /Game/ ).

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Engine/AssetManager.h

Include

#include "Engine/AssetManager.h"

Source

/Engine/Source/Runtime/Engine/Private/AssetManager.cpp

Syntax

static bool GetContentRootPathFromPackageName
(
    const FString & PackageName,
    FString & OutContentRootPath
)

Remarks

Returns the root path for the package name or path (i.e. /Game/MyPackage would return /Game/ ). This works even if the root is not yet mounted

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