Initial setup
Once the Playable Plugin gets installed into a project, it is recommended to start with opening Luna UI via Tools > Playable Plugin
in main Unity menu:
If this is the first time opening the Playable Plugin, you will be presented with an interface requiring your Luna Create Hub login credentials.
- Log in to your Luna Create Hub account.
- Once logged in, the only mandatory change will be to select the scenes to include in the export, and your startup scene (this will be set to default if you have only one scene). To do this, you can navigate to the Settings section, and select the Basic tab.
Scenes in Build will display a list of all scenes currently configured in Unity's
Build Settings
window and additionally (from version 3.5.0) your currently open scene in Unity Editor if it has not been added to Build Settings. Toggling it will add the scene to Build Settings. This is necessary for Luna to be able to discover the list of scenes and also to be able to gather the assets and scripts used by those scenes. Build Settings window can be opened viaFile > Build Settings
.IMPORTANT
Please note Luna's startup scene is configured separately below the list of all scenes.The Use Dev Environment checkbox allows you to activate or deactivate the Luna Create Hub preview mode that runs with your build locally. Click here for more information about this feature.
This is done intentionally so that playable scenes can live side by side with main game without affecting it.
It's always best to start incrementally, i.e. create a simple playable scene with little to no logic and choose that for the export to make sure other pieces of the pipeline are set up properly. It is possible to get back to this UI at any time and make any changes as it becomes required.
Once you have chosen scenes to be exported by Luna, it is ready to export your project.