-
Notifications
You must be signed in to change notification settings - Fork 7
Third_Party
Now you have imported LUTE using the package version, it is important to setup a few items to ensure that you can run the scenes as intended and build to multiple platforms without hassle! This applies to version v1.2.0-alpha or above as these packages no longer included project settings or package dependencies.
With recent versions of Unity, the default input handling is set to use Input System Package (the new version). However, elements of our system use the old input system. Once you have opened your default project to import our tool into, it is suggested that you update the input handling to use 'both' input systems. This can be found in Player Settings (within the project settings 'Edit>Project Settings> Player' labeled as 'Active Input Handling').
As our system uses augmented reality it is imperative that the correct packages are installed.
- Navigate to
Window/Package Manager. - Head to the 'Unity Registery' tab.
- Install the packages that are included within the screenshot below.

Alternatively, you can replace the manifest.json file found within your packages folder with the one that is included with the .unitypackage release. Simply:
- Close your project.
- Copy the
manifest.jsonfile from the release, replace the same file found within 'Your Project/Packages'. - Re-open your project and allow the required packages to install.
- You can use the helper window under 'LUTE/Utilities/Dependency Helper' to ensure all required packages and samples are installed correctly.
For the map features to work and render correctly, we use a specific layer called 'Map' to allow our objects and cameras to know what to render and how to handle specific objects using this layer. To set this up, simply:
- Click on any object a scene (the default scene that is loaded works fine).
- Move over to the inspector and press the 'Layer' dropdown.
- Press 'Add Layer...'.
- In any empty slot, add a layer called 'Map'.

- All objects that use this layer should update automatically but you can test it out by playing the demo scenes.
Now we have correctly set our preferences and materials, we suggest playing the demo scenes to ensure they work correctly. When ready to build to Android please note the following build settings should be set to ensure the game works as intended. Please note this is just for Android.
-
Auto Graphics APIis off and the render list looks like the screenshot below (this is for AR rendering aspects).
-
Minimum API Levelis set to 24 or higher.
-
Application Entry Pointis set to 'Activity' (for older java based plugins such as Mapbox).
Now everything is ready to be built, you can add the demo scenes to the scene list if you want to try out LUTE in full. Please see the following screenshot for what scenes are included and what order they are built. Once this has been set, go ahead and build it! This should work for all mobile platforms and you should be able to use the 'Level Select' scene to navigate all the demo scenes.

Good luck and have fun!