Navigation
Unreal Engine C++ API Reference > Editor > UnrealEd
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UPackageTools
References
Module | UnrealEd |
Header | /Engine/Source/Editor/UnrealEd/Public/PackageTools.h |
Include | #include "PackageTools.h" |
Syntax
class UPackageTools : public UObject
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UPackageTools
(
const FObjectInitializer& ObjectInitializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | CheckOutRootPackages
(
const TArray< UPackage* >& Packages |
Helper function that attempts to check out the specified top-level packages. |
![]() ![]() |
FString | Wrapper method for multiple objects at once. | |
![]() ![]() |
void | ExportPackages
(
const TArray< UPackage* >& PackagesToExport, |
Exports the given packages to files. |
![]() ![]() |
FString | FilenameToPackageName
(
const FString& Filename |
Tries to convert a given relative or absolute filename to a long package name or path starting with a root like /Game This works on both package names and directories, and it does not validate that it actually exists on disk. |
![]() ![]() |
UPackage * | FindOrCreatePackageForAssetType
(
const FName LongPackageName, |
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 |
![]() ![]() |
void | FlushAsyncCompilation
(
TArrayView< UPackage*const > Packages |
Utility function that gathers all async compilable objects from given packages and flush them to make sure there is no remaining async work trying to load data from said packages. |
![]() ![]() |
void | GetFilteredPackageList
(
TSet< UPackage* >& OutFilteredPackageMap |
Filters the global set of packages. |
![]() ![]() |
void | GetObjectsInPackages
(
const TArray< UPackage* >* InPackages, |
Fills the OutObjects list with all valid objects that are supported by the current browser settings and that reside withing the set of specified packages. |
![]() ![]() |
bool | HandleFullyLoadingPackages
(
const TArray< UPackage* >& TopLevelPackages, |
Handles fully loading passed in packages. |
![]() ![]() |
bool | IsPackageExternal
(
const UPackage& Package |
Checks if the passed in package's filename is in an external directory. |
![]() ![]() |
bool | IsPackagePathExternal
(
const FString& PackagePath |
Checks if the passed in path is in an external directory. |
![]() ![]() |
bool | IsSingleAssetPackage
(
const FString& Package |
Checks if the package has only one asset which shares its name |
![]() ![]() |
UPackage * | LoadPackage
(
FString InFilename |
Loads the specified package file (or returns an existing package if it's already loaded.) |
![]() ![]() |
FString | PackageNameToFilename
(
const FString& PackageName, |
Converts a long package name to a file name. |
![]() ![]() |
bool | ReloadPackages
(
const TArray< UPackage* >& PackagesToReload |
Helper function that attempts to reload the specified top-level packages. |
![]() ![]() |
bool | ReloadPackages
(
const TArray< UPackage* >& PackagesToReload, |
Helper function that attempts to reload the specified top-level packages. |
![]() ![]() |
FString | SanitizePackageName
(
const FString& InPackageName |
Replaces all invalid package name characters with _ |
![]() ![]() |
bool | SavePackagesForObjects
(
const TArray< UObject* >& ObjectsToSave |
Saves all the dirty packages for the specified objects |
![]() ![]() |
bool | UnloadPackages
(
const TArray< UPackage* >& PackagesToUnload |
Helper function that attempts to unload the specified top-level packages. |
![]() ![]() |
bool | UnloadPackages
(
FUnloadPackageParams& Params |
Helper function that attemps to unload the specified top-level packages. |
![]() ![]() |
bool | UnloadPackages
(
const TArray< UPackage* >& PackagesToUnload, |
Helper function that attempts to unload the specified top-level packages. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FUnloadPackageParams | Struct containing list of packages to unload and other params. |
Typedefs
Name | Description |
---|---|
EReloadPackagesInteractionMode |
Constants
Name | Description |
---|---|
ObjectsThatHadFlagsCleared | |
PackagesBeingUnloaded | State passed to RestoreStandaloneOnReachableObjects. |
ReachabilityCallbackHandle |
Deprecated Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | ReloadPackages
(
const TArray< UPackage* >& PackagesToReload, |
ReloadPackages taking bInteractive is deprecated. Use the version taking EReloadPackagesInteractionMode instead. |