Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.2.1p1
Issue ID
1022886
Regression
No
Scene that's Enabled = true in ProjectSettings\EditorBuildSettings with empty guid and path fields results in build errors
Steps to reproduce:
1. Open any Unity project
2. Add two Scenes to Build list under File>Build Settings
3. Open up ProjectSettings\EditorBuildSettings.asset under your Project folder
4. Delete the path, guid and make sure enabled is set to 1, so it looks like this:
- enabled: 1
path: Assets/Scenes/SampleScene.unity
guid: 99c9720ab356a0642a771bea13969a05
- enabled: 1
path:
guid:
5. Switch to Unity and try building the project.
Expected result: should probably result in a more elegant/behind the scenes removal of the bad Scene entry
Actual result: Unity throws the following error:
UnityEditor.BuildPlayerWindow+BuildMethodException: '' is an incorrect path for a scene file. BuildPlayer expects paths relative to the project folder.
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x00207] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:172
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:83
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:88)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:173)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:167)
(Filename: /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs Line: 88)
The project must be reopened for it to work again.
Reproduced with: 2017.2.1p1, 2017.4.5f1, 2018.1.4f1, 2018.3.0a1
Note: the user came to this issue by chance so all subsequent reproductions were made by manually removing relevant information from EditorBuildSettings file.
Comments (1)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
GM-GRICH
Jun 03, 2020 19:01
J'ai eu le même problème et tu m'as aider pour le résoudre .
merci beaucoup