Skip to main content

NW-Unity

LOGO

PyPI - Wheel PyPI - Python Version version

NW-Unity is a tool for auto packing your Unity WebGL output folder to a NW.js executable folder.

Quick Usage

Install by pip on Windows/Linux/MacOS:

pip install nwunity

Install by pip on GameShell:

sudo pip3 install nwunity

Pack your game:

# Package your Unity WebGL game(resolution is 320*240, full screen mode is on) on PC, Linux, or MacOS.
nwunity -d '/path/to/UnityWebGLDir' -n 'MyGame' --width 320 --height 240 --fullscreen

# Package your Unity WebGL files on GameShell.
nwunity -d '/path/to/UnityWebGLDir' -n 'MyGame' -p GameShell

How to use

NW-Unity is easy to use. You can install it by pip.

Install by pip

pip install nwunity

Parameters

You can use nwunity -h or nwunity --help to get help.

Format Parameter Explain
-d --directory Set the root directory of your Unity WebGL files, default is current working directory.
-n --name Set the name of your game, default is 'Untitled-Game'.
--width Set the width of your game window, default is 1024.
--height Set the height of your game window, default is 768.
--fullscreen Set full screen mode on, default is off.
--noframe Hide window frame title, default is show.
--resizable Set resizable mode on, default is off.
--transparent Set transparent mode on, default is off.
-p --platform Set platform, default is normal(PC, Linux, MacOS...). Options: GameShell.
-i --icon Set the icon of the game.

GameShell tips

Make sure the OS version of your GameShell is 0.5 or newer.

Switch the GPU Driver of your GameShell to Lima if it's not.

License

The project is under the MIT license.

Metadata

Release files for nwunity 0.2.22

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nwunity 0.2.22
File Size Uploaded
nwunity-0.2.22.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for nwunity 0.2.22
File Interpreter ABI Platform
nwunity-0.2.22-py3-none-any.whl Python 3 none any Details

Total release size: 2.2 MB

Release files / nwunity-0.2.22.tar.gz

Download URL nwunity-0.2.22.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
f2ca33ad9ab82b406a68720ab41df1989378874beda469d763e71a889f07d60f
BLAKE2b-256 checksum
How to use checksums
0766156e4b2b88e11263751abd58da5fb4c519b050fbde04959b68d94fb9a5b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / nwunity-0.2.22-py3-none-any.whl

Download URL nwunity-0.2.22-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3790d30db999886910fd701a89480eaa0c33a585c7f1c50256c5198531e9c4c2
BLAKE2b-256 checksum
How to use checksums
b5eb47babb20393f3f73323c4298cfc0caaf92781759cf519a6c14273f78cf4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.2.22 This release

2 release files

0.2.21

2 release files

0.2.20

2 release files

0.2.19

2 release files

0.2.18

2 release files

0.2.17

2 release files

0.2.16

2 release files

0.2.15

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page