Skip to content

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

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

skibitsky/unity-now

Repository files navigation


Unity Now

Deploy Unity WebGL builds on Vercel serverless platform with ease.

Installation

Install via OpenUPM

The package is available on the openupm registry. It's recommended to install it via 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

  1. Add your access token to the Configure Now assets (Assets/ConfigureNow)
  2. Run Now→ Deploy from the menu bar
  3. Select your WebGL build
  4. 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
Base URL Endpoint base URL. You can change it if you need a certain server location. Read more
Copy URL If enabled, Unity Now will save the deployment URL to the clipboard after the deployment is complete

License

MIT © skibitsky