Branding the Sample App
How to brand the sample app
After following the previous steps, the sample app can be further modified to change the branding. In this example, we will be modifying the default text and images in the sample app.
The dashboard contains the ARway logo and text for the user to edit by default, and these elements can be changed in the Unity editor. The majority of the UI elements can be modified from the Hierarchy window in Unity. This guide will showcase how to modify some of these elements.
Default dashboard scene
In this example we will be modifying the ARway logo.
- 1.To add the new logo image to the Assets in Unity, navigate to the project window and select "Assets -> ARwayKitSDK -> SampleApp -> 1_UI -> Sprites -> Splash". From here, you can drag and drop your new logo into the Splash folder in the Project window.
Splash folder Unity
- 2.Select the uploaded logo, change the "Texture Type" to "Sprite (2D and UI)" and the "Sprite Mode" to "Single", and then click on "Apply" at the bottom.
Uploading new logo
- 2.Navigate to "Dashboard -> Canvas -> DashboardPage -> Scroll View -> Viewport -> Content -> ScanQRPanel -> Background -> Branding" in the Unity Hierarchy window.
Unity Hierarchy window
- 3.Now select the "logo" prefab from the Hierarchy window and change the "Source Image" to the new logo.
Swapping the logo
- 4.In this case, the second prefab "name" under branding is deleted as only one logo is needed.
- 5.Modify the positioning and size of the logo in the "Inspector" window.
Editing the position of the logo
Next, we will modify the text that is displayed on the dashboard.
In the Hierarchy window, navigate to the section "Dashboard -> Canvas -> DashboardPage -> Scroll View -> Viewport -> Content -> ScanQRPanel -> Background" and select the 'Sub Text' object. In the "Text" input field in the Inspector window, update the text to your desired content.
Editing the subtext
In the Hierarchy window, go to the section Dashboard -> Canvas -> DashboardPage -> dashboard_bg. Then in the Inspector window change to color of the dashboard to match your branding.
Modifying the background color