If I set this flag to anything but ‘Nothing’, I get an exception when a Game Object is created with the a layer I’ve set to be disabled. The stack trace looks like this:
KeyNotFoundException: The given key '2112190:0' was not present in the dictionary.
System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <f646c7a159d243a7909d5204af0f0c56>:0)
Unity.PolySpatial.Internals.UnitySceneGraph.FindBackingGameObjectForId (Unity.PolySpatial.Internals.PolySpatialInstanceID simIid) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Platforms/Unity/UnitySceneGraph.cs:245)
Unity.PolySpatial.Internals.UnitySceneGraph.UpdateEntityParent (Unity.PolySpatial.Internals.PolySpatialInstanceID id, Unity.PolySpatial.Internals.PolySpatialInstanceID parentId) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Platforms/Unity/UnitySceneGraph.cs:310)
Unity.PolySpatial.Internals.PolySpatialUnityBackend.OnSendClientCommand (Unity.PolySpatial.Internals.PolySpatialCommand command, System.Int32 argCount, System.Void** args, System.Int32* argSizes) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Platforms/Unity/PolySpatialUnityBackend.cs:280)
Unity.PolySpatial.Internals.PolySpatialUnityBackend.HandleCommand (Unity.PolySpatial.Internals.PolySpatialCommand cmd, System.Int32 argCount, System.Void** argValues, System.Int32* argSizes) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Platforms/Unity/PolySpatialUnityBackend.cs:77)
Unity.PolySpatial.Internals.PolySpatialNativeExtensions.Command[T1,T2] (Unity.PolySpatial.Internals.IPolySpatialCommandHandler handler, Unity.PolySpatial.Internals.PolySpatialCommand command, T1* arg1, T2* arg2) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Platforms/PolySpatialNativeExtensions.cs:135)
Unity.PolySpatial.Internals.PolySpatialUnitySimulation.OnHierarchyChanged (Unity.Collections.NativeArray`1[T] children, Unity.Collections.NativeArray`1[T] parents) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/PolySpatialUnitySimulation.cs:657)
Unity.PolySpatial.Internals.TransformTracker.ProcessNewTransforms (System.Collections.Generic.List`1[T] newGameObjects) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/TransformTracker.cs:109)
Unity.PolySpatial.Internals.GameObjectTracker.ProcessChanges (Unity.PolySpatial.Internals.PolySpatialUnitySimulation unitySimulation, Unity.PolySpatial.Internals.IChangeList`1[TEngineData] data) (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/GameObjectTracker.cs:39)
Unity.PolySpatial.Internals.UnityObjectTracker`3[TObject,TEngineData,TTrackingData].ProcessAllNewAndModifiedObjects () (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/UnityObjectTracker.cs:265)
Unity.PolySpatial.Internals.UnityObjectTracker`3[TObject,TEngineData,TTrackingData].ProcessNewAndModifiedObjects () (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/UnityObjectTracker.cs:234)
Unity.PolySpatial.Internals.PolySpatialUnityTracker.Process () (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/PolySpatialUnityTracker.cs:187)
Unity.PolySpatial.Internals.PolySpatialUnitySimulation.Update () (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/Trackers/PolySpatialUnitySimulation.cs:169)
Unity.PolySpatial.Internals.PolySpatialCore.PolySpatialAfterLateUpdate () (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/PolySpatialCore.cs:573)
UnityEngine.Debug:LogException(Exception)
Unity.PolySpatial.Internals.PolySpatialCore:PolySpatialAfterLateUpdate() (at /Users/bokken/build/output/unity/quantum/Packages/com.unity.polyspatial/Runtime/PolySpatialCore.cs:580)
I’ve tried disabling basically all trackers, but to no avail.
Thanks