The Content scene contains all the assets added to the map in the ARWAY Web Studio within the Developer Portal.
It contains the following major components -
The MapsManager.cs script is responsible for loading all the maps when the user starts the scene. After the user selects a map, he can then navigate through the selected map by choosing a destination.
The AssetImporter.cs script imports all the assets into the scene once the page is loaded. The main components in the Content scene are:
Floor plan images
In order to navigate from the user's current location to the selected destination, NavController.cs and AStar.cs scripts are being used.
ARSpace is a gameobject present in the Unity scene hierarchy, that localizes any content placed under it as a child to the localized origin (0, 0, 0).
So, in order to display assets during runtime in the built application, the assets must be made a child of the ARSpace gameobject.
In order to add content to ARSpace, simply drag and drop the assets as a child gameobject to the ARSpace gameobject.
Step 1: Open the Content scene found in the
Assets/ARWAYSDK/Scenes folder within the Unity project.
Step 2: In the Hierarchy window, look for ARWAYSDK gameobject and then click on it.
Step 3: In the Inspector panel, look for Arway SDK Script and enter your unique Developer Token in the Developer Token field and save the scene.
Step 4: After saving, add the current scene to the build settings. Then choose the platform of your choice (Android/iOS) and build the application.
Step 5: Install the built app on your device and open it.
Step 6: Upon opening the app, you will see a list of Maps created on the ARWAY web studio. Choose the one corresponding to your location.
Step 7: After choosing a Map, select the destination where you want to go from the Select Destination dropdown at the top.
Step 8: After choosing the destination, the shortest path will be shown to the user in the AR scene.