Language:
Discover
By Skill Level
By Category

UPackageTools

Choose your OS:

Inheritance Hierarchy

Syntax

class UPackageTools : public UObject

Constructors

Name Description

Public function

UPackageTools

(
    const FObjectInitializer & ObjectIn...
)

Functions

Name Description

Public function Static

void

 

CheckOutRootPackages

(
    const TArray < UPackage * >& Pa...
)

Helper function that attempts to check out the specified top-level packages.

Public function Static

FString

 

DoBulkExport

(
    const TArray < UPackage * >& To...,
    FString LastExportPath,
    const TSet < UClass * >* Fi...,
    bool bUseProvidedExportPath
)

Wrapper method for multiple objects at once.

the path that the user chose for the export.

Public function Static

void

 

ExportPackages

(
    const TArray < UPackage * >& Pa...,
    FString * ExportPath,
    bool bUseProvidedExportPath
)

Exports the given packages to files.

Public function Static

void

 

GetFilteredPackageList

(
    TSet < UPackage * >& OutFiltere...
)

Filters the global set of packages.

Public function Static

void

 

GetObjectsInPackages

(
    const TArray < UPackage * >*...,
    TArray < UObject * >& OutObject...
)

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.

Public function Static

bool

 

HandleFullyLoadingPackages

(
    const TArray < UPackage * >& To...,
    const FText & OperationText
)

Handles fully loading passed in packages.

Public function Static

bool

 

IsPackageExternal

(
    const UPackage & Package
)

Checks if the passed in package's filename is in an external directory.

Public function Static

bool

 

IsPackagePathExternal

(
    const FString & PackagePath
)

Checks if the passed in path is in an external directory.

Public function Static

bool

 

IsSingleAssetPackage

(
    const FString & Package
)

Checks if the package has only one asset which shares its name

Public function Static

UPackage ...

 

LoadPackage

(
    FString InFilename
)

Loads the specified package file (or returns an existing package if it's already loaded.)

Public function Static

bool

 

ReloadPackages

(
    const TArray < UPackage * >& Pa...
)

Helper function that attempts to reload the specified top-level packages.

Public function Static

bool

 

ReloadPackages

(
    const TArray < UPackage * >& Pa...,
    FText & OutErrorMessage,
    const bool bInteractive
)

Helper function that attempts to reload the specified top-level packages.

Public function Static

bool

 

ReloadPackages

(
    const TArray < UPackage * >& Pa...,
    FText & OutErrorMessage,
    const EReloadPackagesInteractionMod ...
)

Helper function that attempts to reload the specified top-level packages.

Public function Static

FString

 

SanitizePackageName

(
    const FString & InPackageName
)

Replaces all invalid package name characters with _

Public function Static

bool

 

SavePackagesForObjects

(
    const TArray < UObject * >& Obj...
)

Saves all the dirty packages for the specified objects

Public function Static

bool

 

UnloadPackages

(
    const TArray < UPackage * >& Pa...
)

Helper function that attempts to unload the specified top-level packages.

Public function Static

bool

 

UnloadPackages

(
    const TArray < UPackage * >& Pa...,
    FText & OutErrorMessage
)

Helper function that attempts to unload the specified top-level packages.

Enums

Constants

Name

Description

ObjectsThatHadFlagsCleared

PackageBeingUnloaded

State passed to RestoreStandaloneOnReachableObjects.

ReachabilityCallbackHandle

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/PackageTools.h