UPackageTools::FindOrCreatePackageForAssetType

Find or create a package at the desired path If a package already exist but was made for another type of asset, this function will create another one with a modified unique name

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/PackageTools.h

Include

#include "PackageTools.h"

Source

/Engine/Source/Editor/UnrealEd/Private/PackageTools.cpp

Syntax

static UPackage * FindOrCreatePackageForAssetType
(
    const FName LongPackageName,
    UClass * AssetClass
)

Remarks

Find or create a package at the desired path If a package already exist but was made for another type of asset, this function will create another one with a modified unique name

Parameters

Parameter

Description

LongPackageName

The package path in unreal asset path

AssetClass

The class of asset the package should be for.

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