() (at C:/buildslave/unity/build/Editor/Mono/HostView. (System.Boolean clearActualView, System.Boolean sendEvents) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:399) GetRootElement (UnityEditor.EditorWindow window) (at C:/buildslave/unity/build/Editor/Mono/EditorMode/EditorModes.cs:215) +ModeGenericHelper`1.GetRoot (UnityEditor.EditorWindow window) (at C:/buildslave/unity/build/Editor/Mono/EditorMode/EditorModes.cs:28) GetRootElement (UnityEditor.EditorWindow window) (at C:/buildslave/unity/build/Editor/Mono/EditorMode/EditorModes.cs:455) Expected results: No exception is thrown Actual results: Editors throws out an exception. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) -> System.IO.DirectoryNotFoundException: Could not find a part of the path 'F:\Unity\Unity Projects\Hells Pizza\Hells Pizza\Library\ScriptAssemblies\Assembly-CSharp.dll'. (System.Boolean createIfNull) (at C:/buildslave/unity/build/Editor/Mono/EditorWindow.cs:55) Build standalone project on IL2CPP backend 3. : Exception has been thrown by the target of an invocation. UnityEditor.GenericMenu:CatchMenu (object,string,int)īuild Task WriteSerializedFiles failed with exception:Ĭould not find file "C:\Users\anton\Documents\Repository\src\Library\BuildCache\09\09ce8b0817aa172c31c2406eb8cb0d48\8d13ef0b72bb794afb62efa3c0f57ec8\CAB-a454b013b8e1832c5df47a3870b9e2ef"Īt System.IO.FileStream.ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) in :0Īt System.IO.FileStream.ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean isAsync, System.Boolean anonymous) in :0Īt System.IO.FileStream.ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access) in :0Īt (wrapper remoting-invoke-with-check) System.IO.FileStream.ctor(string,System.IO.FileMode,System.IO.FileAccess)Īt .HashingMethods.CalculateFile (System.String filePath) in .WriteSerializedFiles.CalculateFileMetadata (& result) in. (.TaskCachingUtility+WorkItem`1 item) in .TaskCachingUtility.RunCachedOperation (.IBuildCache cache, .IBuildLogger log, .IProgressTracker tracker, `1 workItems, .TaskCachingUtility+IRunCachedCallbacks`1 cbs) in .WriteSerializedFiles.Run () in .Run (`1 pipeline, .IBuildContext context) in (object,string,int)Īddressable content build failure (duration : 0:01:37.412)ġ- Deleting the mentioned 'Assets/Scenes/MainMenuScene.unity' scene, doesn't fix the issue as after trying to build the game without the scene the same error happens but referencing another scene.Ģ- Making sure none of my scripts has the "using UnityEditor " directive (anywhere i use it in my script is also between "#if UNITY_EDITOR" and "#endif".ĥ- Enabling/Disabling MonoScript Bundle Naming, as well as trying all the different options in that.Ħ- Enabling/Disabling Non-Recursive Dependency Calculation.ħ- Also tried out all the options on the Shader Naming.ġ- Disabling MonoScript Bundle Naming makes it so no error is thrown during the addressables building process, however it makes any kind of addressable files completely broken inside game builds (works fine in editor play mode), the first scene works fine in standalone builds since it's not an addressable, however any scene after that is broken and full of errors.Ģ- In the editor, changing Play Mode Scripts to advanced makes the game work fine, however using "Existing Build" (if MonoScript Bundle Naming is disabled - since while enabled it throws the above error) makes the game completely broken as well, only the starting scene works since it's not an addressable.ģ- I can't reproduce the issue since it's a very large project.Ĥ- I can't attach the project since it's very large.ĥ- I have been using addressables for over an year and i have never experienced such problem, the problem didn't appear after updating the Addressables package.Ħ- I was experiencing this issue in the 1.18.15 version, upgraded to 1.19.4 but that did not fix the problem.Ĭurrent Addressables package version: 1.19.NullReferenceException: Object reference not set to an instance of an object (You are probably referencing internal Unity data in your build.) Included from scene: 'Assets/Scenes/MainMenuScene.unity' I'm getting the following errors while trying to build the addressables:Īn asset is marked with HideFlags.DontSave but is included in the build:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |