Problem category: semantic segmentation Device type and OS version: iphone11 pro / iOS 15.5 Host machine and OS version: macOS Monterey version 12.4 Issue Environment : Unity Mock / on device Xcode version:13.4
ARDK version:2.0.0
Unity version: 2020.3.35f1
Problem Description
I ran LightshipHUB/Samples/Contextual Awareness/SemanticMasking.unity
but cannot confirm the operation due to the following error. Please tell me how to fix the error.
Error.
[1]
A game object can only be in one layer. The layer needs to be in the range [0. .31]
StackTraceUtility:ExtractStackTrace ()
Niantic.ARDK.Templates.ObjectMasking:SetLayerToGameObject (UnityEngine.GameObject,string) (at Assets/LightshipHUB/Runtime/Scripts/ObjectMasking.cs:43)
Niantic.ARDK.Templates.ObjectMasking:SetLayerToGameObject (UnityEngine.GameObject,string) (at Assets/LightshipHUB/Runtime/Scripts/ObjectMasking.cs:48)
Niantic.ARDK.Templates.ObjectMasking:Awake () (at Assets/LightshipHUB/Runtime/Scripts/ObjectMasking.cs:16)
[2]
A game object can only be in one layer. The layer needs to be in the range [0β¦31].
StackTraceUtility:ExtractStackTrace ()
ObjectMasking:SetLayerToGameObject (UnityEngine.GameObject,string) (at Assets/LightshipHUB/Runtime/Scripts/ObjectMasking.cs:43)
Niantic.ARDK.Templates.ObjectMasking:Awake () (at Assets/LightshipHUB/Runtime/Scripts/ObjectMasking.cs:16)
Thanks for the screenshot.
I was able to reproduce your issue by not having a license key in the Lightship HUB - Configuration Helper Window.
Can you please try with fresh SemanticMasking unity project and follow the below steps,
Import latest ARDK, ARDK Mock environments, Lightship Hub, and Lightship Mock environments packages to project.
Skip creating the Resources folder and setting the ARDK auth key in the ARDK folder.
Click on Lightship - > Lightship Hub β Configuration Helper Window.
Add Auth key, click setup β you will see a success message.
Add the ARDK_MockWorld layer to the mock environment prefabs and their children.
Open Mock Play configuration, and select ParkPond Mock scene.
Run the project in unity.
With the above steps, we were able to run without any console errors.
Please refer, to this documentation, for how to set up a License Key.
If the console errors persist even after the above steps, please let us know.