Command line utility and library for parsing, unpacking, and repacking Unity Web data package files.
You can download a binary from the releases page or install the package using Go:
go get github.com/jozsefsallai/unityweb
unityweb unpack -i /path/to/unityweb.data -o /path/to/output/directory
unityweb pack -i /path/to/input/directory -o /path/to/unityweb.data
package main
import (
"github.com/jozsefsallai/unityweb"
)
func main() {
// you can now access functions from `unityweb`
}
pkg, err := unityweb.FromPackageFile("/path/to/unityweb.data")
if err != nil {
panic(err)
}
err = pkg.Dump("/path/to/output/directory")
if err != nil {
panic(err)
}
pkg, err := unityweb.PackDirectory("/path/to/input/directory")
if err != nil {
panic(err)
}
err = pkg.PackToFile("/path/to/unityweb.data")
if err != nil {
panic(err)
}
.data
files used by Unity Web projects are just files stitched together with
no compression whatsoever and some added metadata for identification. Here's an
example that demonstrates the structure of these files:
MIT.