Unity Issue Tracker - “KeyNotFoundException” error is thrown when building the project with a Sub Scene that includes a Prefab which uses a Sprite Map
Fixed
ECSB-409
“KeyNotFoundException” error is thrown when building the project with a Sub Scene that includes a Prefab which uses a Sprite Map
Package: Entity Component System (ECS)
Won't Fix
1.0.X
1.0.x is no longer in active maintenance.
How to reproduce:
1. Open the “EntitiesBug“ project
2. Open the “SampleScene”
3. Build the project and observe the Console (File > Build Settings > Build)
Expected result: the Build is successful
Actual result: the Build fails and the “KeyNotFoundException” error is thrown
Reproduced on: Windows 10 (by reporter), Windows 11
Notes:
1. Full error logs are provided in internal comments
2. Sometimes the issue is not reproducible, therefore it might be necessary to build the project at least 2 times
3. Not reproducible when building the project without using Sub Scene with the “UI_Prefab” → building the project in a regular Scene with the “UI_Prefab” does not throw errors
4. Not reproducible when removing the “IngameDebugConsole” Prefab from “UI_Prefab” in the “UI Prefab Authoring” Script Component in the second “data” field
Prioritise and Follow this issue
Have a workaround or additional info about this issue?