Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/skibitsky/unity-now

▲ Vercel Now plugin for Unity. Deploy WebGL builds with ease
https://github.com/skibitsky/unity-now

csharp deployment unity unity-editor upm upm-package vercel webgl zeit zeit-now

Last synced: about 1 month ago
JSON representation

▲ Vercel Now plugin for Unity. Deploy WebGL builds with ease

Awesome Lists containing this project

README

        



Unity Now



Deploy Unity WebGL builds on Vercel serverless platform with ease.



## Installation

### Install via OpenUPM

The package is available on the [openupm registry](https://openupm.com). It's recommended to install it via [openupm-cli](https://github.com/openupm/openupm-cli).

```
openupm add com.skibitsky.unity-now
```

### Install via Git URL

Open *Packages/manifest.json* with your favorite text editor. Add the following line to the dependencies block.

{
"dependencies": {
"com.skibitsky.unity-now": "https://github.com/skibitsky/unity-now.git"
}
}

Notice: Unity Package Manager records the current commit to a lock entry of the *manifest.json*. To update to the latest version, change the hash value manually or remove the lock entry to resolve the package.

"lock": {
"com.skibitsky.unity-now": {
"revision": "master",
"hash": "..."
}
}

## Usage
0. Add your [access token](https://vercel.com/account/tokens) to the **Configure Now** assets (Assets/ConfigureNow)
1. Run Now→ Deploy from the menu bar


2. Select your WebGL build
3. Wait till deployment completes

## Configuration
You can configure Unity Now using **Configure Now** scriptable object. By default it is located at *Assets/ConfigureNow* and contains the following properties:

| Name | Description |
| --- | --- |
| **Token** | Vercel access token. You can generate a new one [here](https://vercel.com/account/tokens) |
| **Base URL** | Endpoint base URL. You can change it if you need a certain server location. [Read more](https://zeit.co/docs/api/#api-basics/server-specs/origins) |
| **Copy URL** | If enabled, Unity Now will save the deployment URL to the clipboard after the deployment is complete |

## License
MIT © [skibitsky](http://skibitsky.com)