Skip to main content

The tool to pack and unpack UnityWebData files

Project description

UnityWebData 파일을 풀거나 다시 합치는 도구. 단순히 포함하고 있는 파일 정보를 확인할 수도 있어요.

UnityWebData 파일이란

UnityWebData 파일은 WebGL게임에서 WebAssembly 파일과 함께 로드되어 사용되는 파일로, 주로 에셋, 리소스 및 메타데이터 파일을 모두 묶은 하나의 파일입니다.

UnityWebData 파일의 구조

여기서는 UnityWebData1.0을 기준으로 바이너리 파일의 구조를 설명합니다. int값은 리틀 엔디안으로 읽어야합니다.

파일 일반 헤더

명칭 크기(byte) 자료형 설명
파일 시그니처 16 String "UnityWebData1.0\0"
파일 시작 위치 4 int 나열된 파일 전체에서의 시작 위치로, 첫번째 파일의 위치와 같다

파일 정보 헤더

이후 파일 시작 위치 전까지 아래 묶음이 각 파일별로 반복됩니다.

명칭 크기(byte) 자료형 설명
파일 위치 4 int 파일의 시작 위치
파일 크기 4 int 파일의 크기
파일 이름 길이 4 int 파일 이름의 길이
파일 이름 n String 파일 이름

파일 영역

헤더 직후에는 각 파일들이 나열되어있습니다. 어떤 파일을 읽고자 한다면 헤더에서 해당 파일의 위치를 가져와서 그 위치부터 헤더의 파일 크기만큼 읽으면 됩니다.

파일 구조 이미지

img_format

사용법

python UWDTool.py <작업옵션> [-i 입력경로] [-o 출력경로]

작업옵션

  • -p --pack: 입력경로의 파일들을 UnityWebData 파일로 만들어 출력경로에 저장합니다. 이 때 입력경로는 패킹할 파일들을 포함하고 있는 폴더의 경로입니다.
  • -u --unpack: 입력경로의 UnityWebData 파일을 언패킹하여 출력경로에 저장합니다. 이 때 입력경로는 언패킹할 파일의 경로이며, 출력경로는 파일들이 저장될 폴더의 경로입니다.
  • -isp --inspect: 입력경로의 UnityWebData파일이 포함하고 있는 파일들의 정보를 출력합니다. 여기에는 파일의 이름과 크기가 표시됩니다. 이 경우 출력경로는 필요하지 않습니다.
  • -h --help: 도움말 및 프로그램의 정보를 출력합니다.

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.tar.gz (4.0 kB view details)

Uploaded Source

Built Distributions

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

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

Uploaded Python 3

uwdtool-1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: uwdtool-1.0.tar.gz
  • Upload date:
  • Size: 4.0 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.tar.gz
Algorithm Hash digest
SHA256 67ccae53c52f81703476640930a265b70ae80ba5671e92087b4614f95a69b098
MD5 8ffb50afef4785f8b5553db4117f2565
BLAKE2b-256 e200a2b1fc3847b061155dcc3ccdf13004c84defe022963505315987475e57b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uwdtool-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6616bf345edfb21088d90bbf3d2e5e35825c43c92e482fa857e44f60f0bf7c31
MD5 fb97206ac36219f97c1d8dabdd06ec53
BLAKE2b-256 999e16930db9de4a0c18f7999753d2cf57ca09e912ff99a80b1350fab5db189f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uwdtool-1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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-py3-none-any.whl
Algorithm Hash digest
SHA256 b66d511a9dba586a3b8598bbd2e228aff53c8fb7e8c1b01b6864b31c1f980fdf
MD5 a40f216be139919b289648d0207fc9b6
BLAKE2b-256 c5e44492c740ad56e237b226de3331574eaaed8e2509914f5b7bb87eba7c418a

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