Skip to main content

Development Build

What is a Development Build?

A Development Build (or Develop Build) is a version of your playable specifically created for developers for testing and debugging on a local machine. It is not intended for production use, as it does not include asset compression and serves each file individually. It is designed purely for testing purposes on a local machine.

How to create a Develop Build

To follow this guide we recommend that you have completed the previous installation steps. This guide is highly recommended to perform a simple export and also familiarize yourself with main actions available in the Playable Plugin. For the sake of simplicity, let's assume you have created an empty project with a simple scene (a cube in front of the camera will suffice) and have installed Luna in there.

Initial Scene

Your scene then might look as follows:

images-medium

Provided that you have completed successfully the initial setup steps - which includes adding the scene to Scenes in Build and setting it up as the startup scene - you can proceed to click on the Build & Upload -> Build Develop button.

set-up-develop-build-build-project

Export

After a few minutes, if the export completes properly, a small window will pop up asking you if you want to open your build in the browser or open the directory where it is located:

images-small

  • The former option allows you to test your build locally in your default browser. Here, you can try for the first time the Dev Environment and its tools. You can test your customizable fields and get an idea of how your playable can perform out in the wild thanks to the Performance Indicator and our Startup Argument.

    info

    It is critical to test your creative on the device you are interested in to obtain more precise results. Using the Developer Environment, you can easily test your creative on other devices. Click here for more information.

  • The latter option opens your default file navigator (like Explorer on Windows or Finder on Mac) and show you the LunaTemp folder. You can notice different subfolders in this section. You need to open only the stage4 folder which contains your build. Your development build is in the develop subfolder.

    You can start any web server from that folder (i.e. http-server from Node's npm), but for your convenience Luna provides a built-in functionality for doing so.

IMPORTANT

Due to the way Luna loads resources in development builds, simply opening the web page in your browser would render nothing but a black screen, that is why it is required to run a real web server out of develop folder to make Luna development builds work. See below for quick and easy way to do so.

To see your scene in the browser, get back to Luna UI, navigate to Build & Upload tab on the left, and click Start server (click Stop server first if it is already running):

images-medium

This will start an HTTP server in background and will launch a default browser with your build running in it:

images-medium

Now you successfully created your first develop build! You can now start developing your playable and test it in the browser.

Your playable will launch in the Development Enviroment where you can test your customizable fields and get an idea of how your playable can perform out in the wild thanks to the Performance Indicator and our Startup Argument.

Debugging

If you wish to troubleshoot any errors with your creative, you can consult our debugging guide that provides you with assistance.