FabianFG/CUE4Parse
소개
CUE4Parse is a parsing library designed specifically for extracting data from archives and packages generated by Unreal Engine 4 and 5. It provides extensive support for parsing and processing native data classes such as UObject, UTexture2D, UAnimSequence, UStaticMesh, and many more. It also offers abstraction layers that enable developers to customize and type their own package formats, to allow them to work with packages that may have unique requirements or structures.
기타 프로젝트측정된 스타 증가
- in 24h
- +2
- in 7 days
- +8
- in 15 days
- +14
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalCUE4Parse - An Unreal Engine Archives & Packages Parsing Library in C#
Description:
CUE4Parse is a parsing library designed specifically for extracting data from archives and packages generated by Unreal Engine 4 and 5. It provides extensive support for parsing and processing native data classes such as UObject, UTexture2D, UAnimSequence, UStaticMesh, and many more. It also offers abstraction layers that enable developers to customize and type their own package formats, to allow them to work with packages that may have unique requirements or structures.
While primarily used and maintained by the FModel team for their various projects, contributions to the library are always welcome, particularly in the areas of memory efficiency, and execution time.
Quickstart:
Installation
Add the NuGet package to your project:
dotnet add package CUE4Parse
Alternatively, you can clone the repository and include it in your project as a reference:
git clone https://github.com/FabianFG/CUE4Parse.git --recursive
Example
var provider = new DefaultFileProvider(ARCHIVE_DIRECTORY_HERE, SearchOption.TopDirectoryOnly, true, new VersionContainer(EGame.GAME_UE4_27));
provider.Initialize(); // will scan the archive directory for supported file extensions
var allObjects = provider.LoadAllObjects(PACKAGE_PATH_HERE); // {GAME}/Content/Folder1/Folder2/PackageName.uasset
var fullJson = JsonConvert.SerializeObject(allExports, Formatting.Indented);
var obj = provider.LoadObject(OBJECT_PATH_HERE); // {GAME}/Content/Folder1/Folder2/PackageName.ObjectName
var objJson = JsonConvert.SerializeObject(objectExport, Formatting.Indented);
switch (obj)
{
case UTexture2D texture:
{
var bitmap = texture.Decode(ETexturePlatform.DesktopMobile);
...
}
case USoundWave:
{
objectExport.Decode(true, out var audioFormat, out var data);
...
}
case UStaticMesh:
case USkeletalMesh:
case UAnimSequence:
{
var toSave = new Exporter(objectExport, EXPORT_OPTIONS_HERE);
var success = toSave.TryWriteToDir(SAVE_DIRECTORY_INFO_HERE, out var label, out var savedFilePath);
...
}
default:
{
...
}
}
Further detailed documentation is available in the wiki
License:
CUE4Parse is licensed under Apache License 2.0, and licenses of third-party libraries used are listed here.
관련 프로젝트 살펴보기
불러오는 중…