Skip to main content

Luna UI Guide

The Luna UI in Unity contains a number of settings and useful features which you'll need to utilise when exporting your playable ads.

All of these are covered at various places within the documentation, but the following guide provides a quick snapshot of what each Section and Tab does, and why to use it.

Settings#

The Settings sections contains information for the configuration of your exported scene and playable ad.

images-medium

Basic#

  • Scenes in Build - a list of scenes which will be included in the Luna export.
  • Startup Scene - the scene which will be initialised first when the export is run in the browser.
  • Export type - which assets will be exported from Luna. Several options are provided to allow you reduce the size quickly.
  • Project settings
    • Auto-instantiate Prefabs - instantiate prefabs during playable startup. This can lead to longer loading time but reduce frame rate drops during gameplay.

Advanced#

Please see the documentation for Advanced Settings which included more details about this tab.

Ad Network#

Please see the documentation for Ad Network Settings which included more details about this tab.

Account#

Here you can logout of your Playground account.

This tab also contains the option for you to change the Playable plugin window's language. At this point in time we support English and Russian.

images-medium

Assets#

The Assets sections allows you to control which assets are included in your build, and how they are formatted. If the size of your playable is too large, this is where you will need to focus your attention.

images-medium

Assets#

For exclude and include assets from your build. Please note, selecting a folder includes every asset in that folder, and force-include always wins (overrides and exclusion). See more details here.

Asset types#

The following tabs allow you to optimise the asset types, and contain specific features related to these types. For more information, please review the documentation on how to optimise your build.

Code#

The Code section of the Luna UI provides a number of tools and features that help you navigate your code and ensure it can be compiled to run on the Luna game engine.

images-medium

Diagnostics#

The Diagnostics panel provides a breakdown of any compilation issues with your playable in an easy and digestible way. You can use this panel to get insights into what is causing compilation issues with your project's source code, and navigate between other tabs and the code solution to make amendments.

For full details, please review the documentation.

Exclusions#

By default, Luna will include all C# source code when exporting your project. You should exclude source code files that aren't needed for your playable ad by using the Exclusions tab. For instance, you should exclude all "Example" scripts that come with plugins.

For full details, please review the documentation.

Stubs#

Automatic Stubbing is a feature of the Luna Playable plugin for Unity that allows you to automatically stub libraries that are not essential to your playable but are included in your Unity project.

For full details, please review the documentation. You can also check out our blog post, about how the Stubber works.

External Sources#

You may wish to include external C# or JS source code and libraries in your project. The External Sources tab allows you to do this.

For full details, please review the documentation on including C# source folders and JS libraries.

Scripting Defines#

In your game code you may wrap certain features in Scripting Defines; this code will only be compiled and run in certain conditions or platforms, such as specific Unity Versions. The Scripting Defines tab allows you to include specific pre-processor symbols to be included in your Luna build.

For full details, please review the documentation.

Develop#

The Develop section allows you to create a development build of your project. The final output will be output in PROJECT > LunaTemp > Stage4.

images-medium
  • Build project - creates a new build of your project, using the settings defined in the sections of the Luna UI.
  • Server > Start server - Luna opens a http-server for your convenience.

Unity Develop Build Button#

You can also build for develop directly from the Unity UI; simply click on the button with the Luna logo along to the left from Unity's Play button.

images-medium

Playground#

The Playground sections provides you with settings and features required to create a build for Luna Playground, our web UI for playables.

For full details, please review the documentation.

Expert#

The Expert section surfaces a number of pre-defined messages that can help to identify performance issues, malformed project items and so on.

For full details, please review the documentation.

Size Breakdown#

The Size Breakdown provides you with a detailed breakdown of what is taking up space in your Luna builds, by asset type.

For full details, please review the documentation.