unreal.PackageTools
¶
- class unreal.PackageTools(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
Object
Package Tools
C++ Source:
Module: UnrealEd
File: PackageTools.h
- classmethod filename_to_package_name(filename) str ¶
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.