Giter VIP home page Giter VIP logo

unitypreviewserver's Introduction

Unity Preview Server

CI License Release OpenUPM

Unity Preview Server is a Unity editor extension for previewing WebGL application locally.

This extension allows you to run your WebGL application on a fixed port without building it every time.

Supported Unity Editor

  • 2021.3 or later

Installation

Install via git URL

  1. Open Package Manager window in your Unity Editor (Main Menu > Window > Package Manager).
  2. Click + and select Add package from git URL....
  3. Add https://github.com/frozenbonito/UnityPreviewServer.git?path=Packages/jp.frozenbonito.preview-server.

You can specify a version with a URL suffix like v1.0.0. For example, https://github.com/frozenbonito/UnityPreviewServer.git?path=Packages/jp.frozenbonito.preview-server#v1.0.0.

Install via OpenUPM

See the OpenUPM package documentation.

Usage

After installing this extension, Preview Server item will be added to the main menu.

Start server

Main Menu > Preview Server > Start

Stop server

Main Menu > Preview Server > Stop

The server will automatically stop when the editor is closed or the assembly is reloaded.

Preview Server Window

Main Menu > Preview Server > Open Window...

You can edit the user settings, start and stop the server, and view the logs in the window.

Configurations

Preferences

Main Menu > Edit > Preferences... > Preview Server

Default Port

The port number to use for the preview server. This will be used as the default value for all projects.

Default: 5000

Project Settings

Main Menu > Edit > Project Settings... > Preview Server

Default Build Location

The build location for WebGL; the contents in it will be served by the preview server. This will be used as the default location for the project. Only folders with in a project can be set.

Default: Build

User Settings

Main Menu > Preview Server > Open Window...

User settings are user-specific and project-specific settings.

Use Default Location

If this item is checked, the server will serve the contents in the default build location. Otherwise, the build location in the user settings will be used.

Default: true

Build Location

The build location for WebGL; the contents in it will be served by the preview server. If Use Default Location is checked, this is ignored.

Default: The current location for the WebGL build, or ${PROJECT_PATH}/Build

Use Default Port

If this item is checked, the server will use the default port. Otherwise, the port in the user settings will be used.

Default: true

Port

The port number to use for the preview server. If Use Default Port is checked, this is ignored.

Default: 5000

Related project

unisrv - A preview server for Unity WebGL application.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.