NW-Unity is a tool for auto packing your Unity WebGL output folder to a NW.js executable folder.
Project description
NW-Unity
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nwunity-0.2.22.tar.gz
.
File metadata
- Download URL: nwunity-0.2.22.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2ca33ad9ab82b406a68720ab41df1989378874beda469d763e71a889f07d60f |
|
MD5 | 46fa09ca67bd513a4e27aa32d6deb09b |
|
BLAKE2b-256 | 0766156e4b2b88e11263751abd58da5fb4c519b050fbde04959b68d94fb9a5b4 |
File details
Details for the file nwunity-0.2.22-py3-none-any.whl
.
File metadata
- Download URL: nwunity-0.2.22-py3-none-any.whl
- Upload date:
- Size: 1.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3790d30db999886910fd701a89480eaa0c33a585c7f1c50256c5198531e9c4c2 |
|
MD5 | 11e3881cf17434a2e8e87b599d236720 |
|
BLAKE2b-256 | b5eb47babb20393f3f73323c4298cfc0caaf92781759cf519a6c14273f78cf4f |