Skip to main content

The tool to pack and unpack UnityWebData files

Project description

The tool for packing or unpacking UnityWebData files. You can also simply check the file information that it contains.

What Is UnityWebData

A UnityWebData file is a file that is loaded and used in conjunction with a WebAssembly file in a WebGL game, primarily a file that combines all of the asset, resource, and metadata files.

The Struct Of UnityWebData

This section describes the structure of binary files based on UnityWebData1.0 The int value must be read in Little Endian.

File Header

Name Length(byte) Type Description
File Signature 16 String "UnityWebData1.0\0"
File Body Offset 4 int The starting location for the entire listed file, the same as the location of the first file

File Information Header

The bundles below will then be repeated for each file until the file body starts.

Name Length(byte) Type Description
File Offset 4 int Start offset of the file
File Length 4 int Size of file
File Name Length 4 int Length of file name
File Name n String File name

File Body

Each file is listed immediately after the header. If you want to read a file, you can take its offset in the header and read it from that location to the size of the file in the header.

File Struct Image

img_format

Usage

python UWDTool.py <Control Option> [-i input_path] [-o output_path]

Control Option

  • -p --pack: Make the files in the input path into a UnityWebData file and save them to the output path. The input path is the path of the folder containing the files to be packed.
  • -u --unpack: Unpack the UnityWebData file in the input path and save it to the output path. The input path is the path of the file to be unpacked, and the output path is the path of the folder where the files will be stored.
  • -isp --inspect: Print information about the files that the UnityWebData file in the input path contains. It shows the name and size of the file. No output path is required in this case.
  • -h --help: Print help message and information from the program.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uwdtool-1.0.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uwdtool-1.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file uwdtool-1.0.2.tar.gz.

File metadata

  • Download URL: uwdtool-1.0.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.7.4 Linux/4.4.0-1128-aws

File hashes

Hashes for uwdtool-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6c944ac1570d47831e0a514302001819eaf33fa7933bd49e176067579d117f7b
MD5 afc876c35b39d61923a70233451b5b01
BLAKE2b-256 40b66006c70be335620465d7b9089a4bef24b944c26845d5d6e0eb4f486afaaf

See more details on using hashes here.

File details

Details for the file uwdtool-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: uwdtool-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.7.4 Linux/4.4.0-1128-aws

File hashes

Hashes for uwdtool-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f122d7a4d54f9e100ac9975ba62cb88c478e0783240e95dc4d3c6c12dc2ab0de
MD5 2e3eeb72bf6351f99c35912a840e27cf
BLAKE2b-256 01f5d70aa92b35533cf3f3cdd21c97118a1e5fd26a648585e3d55bedb6d35a67

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page