Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Can't build entitties1.0.0-pre.15

Discussion in 'Entity Component System' started by jennal, Dec 12, 2022.

  1. jennal

    jennal

    Joined:
    Oct 28, 2017
    Posts:
    24
    Always given this error, and I don't know which asset it is according to.

    Code (CSharp):
    1. KeyNotFoundException: The given key 'Library/AtlasCache/d7/d72947c79a66ec3c8d34204983b2e25a' was not present in the dictionary.
    2. System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <8f06425e63004caf99a79845675f751e>:0)
    3. Unity.Scenes.Editor.EntitySceneBuildUtility+<>c__DisplayClass3_0.<PrepareAdditionalFiles>b__0 (Unity.Entities.Hash128 guid, System.Int64 lfid, System.String path) (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Scenes.Editor/EntitySceneBuildUtility.cs:277)
    4. Unity.Entities.Content.BuildResultsCatalogDataSource..ctor (UnityEditor.Build.Pipeline.Interfaces.IBundleBuildResults results, System.Collections.Generic.IEnumerable`1[T] builtInObjects, System.Func`4[T1,T2,T3,TResult] objIdentifierToRuntimeId, System.Func`2[T,TResult] pathToFileId, UnityEditor.Build.Pipeline.Tasks.IClusterOutput buildLayout, System.Collections.Generic.HashSet`1[T] sceneGuids) (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Scenes.Editor/Build/BuildResultsCatalogDataSource.cs:29)
    5. Unity.Scenes.Editor.EntitySceneBuildUtility.BuildContent (UnityEditor.BuildTarget target, System.Collections.Generic.HashSet`1[T] weakAssetRefs, System.Collections.Generic.List`1[T] customContent, System.Action`2[T1,T2] RegisterFileCopy, System.Func`4[T1,T2,T3,TResult] objIdToRTId, System.Func`2[T,TResult] idRemapFunc, System.Int32 numberOfSubScenesInBuild, System.Int32& numberOfAssetsInSubScenes) (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Scenes.Editor/EntitySceneBuildUtility.cs:692)
    6. Unity.Scenes.Editor.EntitySceneBuildUtility.PrepareAdditionalFiles (Unity.Entities.Hash128 playerGuid, Unity.Entities.Hash128[] sceneGuids, UnityEditor.Experimental.ArtifactKey[] entitySceneArtifacts, UnityEditor.BuildTarget target, System.Action`2[T1,T2] RegisterFileCopy) (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Scenes.Editor/EntitySceneBuildUtility.cs:310)
    7. Unity.Scenes.Editor.EntitySceneBuildPlayerProcessor.PrepareForBuild (UnityEditor.Build.BuildPlayerContext buildPlayerContext) (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Scenes.Editor/EntitySceneBuildPlayerProcessor.cs:161)
    8. UnityEditor.Build.BuildPipelineInterfaces.PreparePlayerBuild (UnityEditor.Build.BuildPlayerContext context) (at <a62328349c154758b537cb55981f61df>:0)
    9. UnityEditor.BuildPipeline.PreparePlayerBuild (UnityEditor.BuildPlayerOptions buildPlayerOptions) (at <a62328349c154758b537cb55981f61df>:0)
    10. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
     
  2. jennal

    jennal

    Joined:
    Oct 28, 2017
    Posts:
    24
    It seems according to the Atlas Settings. When I remove all atlas settings, the build process passed.
     
  3. bustedbunny2

    bustedbunny2

    Joined:
    Oct 27, 2021
    Posts:
    25
    What atlas settings did you mean?
    I'm having same error and can't really figure how you fixed it.
     
  4. jennal

    jennal

    Joined:
    Oct 28, 2017
    Posts:
    24