Read and extract informations of .uasset
files from Unreal Engine in javascript.
Here a Live Demo.
First you need to import uasset-reader.min.js
in your page.
const file = document.getElementById("file-input").files[0];
const buffer = await file.arrayBuffer();
const bytes = new Uint8Array(buffer);
new window.blueprintUE.uasset.ReaderUasset().analyze(bytes);
This method read each byte to extract data from current .uasset
file.
Currently using:
- node v14.19.1
- npm 8.6.0
Install Gulp & packages
npm install --global gulp-cli
npm install
Then run:
gulp
It will create in dist
folder:
uasset-reader-min.js
: js file to put online
At the end, gulp watch is launched for js files.
The demos files is for explaing how works uasset-reader.
gulp js
: generate js file for dev and prod
Run tests
npm test
First you have to install jsdoc.
npm install -g jsdoc
Then you can generate the documentation.
npm run jsdoc
The output folder is jsdoc located at the root of the project.
Output in terminal
npm run eslint
Output in eslint_out.html
npm run eslint-export