Unity3D-由于"[Unity]错误:构建失败:资产标记有HideFlags.DontSave,但包含在构建中:" [英] Unity3D - Build Failed because of "[Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:"

查看:907
本文介绍了Unity3D-由于"[Unity]错误:构建失败:资产标记有HideFlags.DontSave,但包含在构建中:"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Unity Cloud构建服务,由于 "[Unity]错误,我的构建失败了:资产标记有HideFlags.DontSave,但包含在构建中:" 错误.

Using Unity Cloud Build Service, i my build failed because of "[Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:" error.

到目前为止我所做的:

1)我试图删除Project Setting并重新打开Unity,但是构建仍然失败...

1) i have tried to delete Project Setting and reopen Unity but build is still failed...

2)在预制和所有场景上将所有"Arial"字体更改为自定义字体,但仍然失败...

2) Change all "Arial" font to custom font on prefab and on all scene, but still failed...

下面是Unity Build Service的紧凑型日志:

Below are compact log of Unity Build Service:

1207: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth' - Pass '' has no vertex shader
1208: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth' - Setting to default shader.
1209: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth_MSAA' - Pass '' has no vertex shader
1210: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth_MSAA' - Setting to default shader.
1211: [Unity] Script attached to 'Scene Variables' in scene 'Assets/z_scene/ENGLISH/Games/EN_Guess_Object_Portable.unity' is missing or no valid script is attached.
1212: [Unity] Script attached to 'Scene Variables' in scene 'Assets/z_scene/ENGLISH/Games/EN_Guess_Object_Portable.unity' is missing or no valid script is attached.
1213: [Unity] Script attached to 'Missing Prefab (Dummy)' in scene 'Assets/z_scene/ENGLISH/Games/EN_Guess_Object_Portable.unity' is missing or no valid script is attached.
1214: [Unity] Script attached to 'Missing Prefab (Dummy)' in scene 'Assets/z_scene/ENGLISH/Games/EN_Guess_Object_Portable.unity' is missing or no valid script is attached.
1215: [Unity] Script attached to 'Missing Prefab (Dummy)' in scene 'Assets/z_scene/ENGLISH/Games/EN_Guess_Object_Portable.unity' is missing or no valid script is attached.
1216: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth' - Pass '' has no vertex shader
1217: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth' - Setting to default shader.
1218: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth_MSAA' - Pass '' has no vertex shader
1219: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth_MSAA' - Setting to default shader.
1220: [Unity] Script attached to 'Missing Prefab (Dummy)' in scene 'Assets/z_scene/ENGLISH/Games/EN_Memorize_Alphabet_Portable.unity' is missing or no valid script is attached.
1221: [Unity] Script attached to 'Missing Prefab (Dummy)' in scene 'Assets/z_scene/ENGLISH/Games/EN_Memorize_Alphabet_Portable.unity' is missing or no valid script is attached.
1222: [Unity] Script attached to 'Missing Prefab (Dummy)' in scene 'Assets/z_scene/ENGLISH/Games/EN_Memorize_Alphabet_Portable.unity' is missing or no valid script is attached.
1223: [Unity] Script attached to 'Scene Variables' in scene 'Assets/z_scene/ENGLISH/Games/EN_Memorize_Alphabet_Portable.unity' is missing or no valid script is attached.
1224: [Unity] Script attached to 'Scene Variables' in scene 'Assets/z_scene/ENGLISH/Games/EN_Memorize_Alphabet_Portable.unity' is missing or no valid script is attached.
1225: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth' - Pass '' has no vertex shader
1226: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth' - Setting to default shader.
1227: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth_MSAA' - Pass '' has no vertex shader
1228: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth_MSAA' - Setting to default shader.
1229: [Unity] WARNING: Shader Unsupported: 'VR/SpatialMapping/Wireframe' - Pass '' has no vertex shader
1230: [Unity] WARNING: Shader Unsupported: 'VR/SpatialMapping/Wireframe' - Setting to default shader.
1231: [Unity] WARNING: Shader Unsupported: 'Hidden/VR/BlitTexArraySliceToDepth_MSAA' - Pass '' has no vertex shader
1232: [Unity] WARNING: Shader Unsupported: 'Hidden/VR/BlitTexArraySliceToDepth_MSAA' - Setting to default shader.
1233: [Unity] WARNING: Shader Unsupported: 'AR/TangoARRender' - Pass '' has no vertex shader
1234: [Unity] WARNING: Shader Unsupported: 'AR/TangoARRender' - Setting to default shader.
1235: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1236: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1237: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1238: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1239: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1240: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1241: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1242: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1243: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1244: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1245: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1246: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1247: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1248: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1249: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1250: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1251: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1252: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1253: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1254: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1255: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1256: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1257: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1258: [Unity] Asset name: Lucida Grande Warning
1259: [Unity] Asset name: Lucida Grande Warning
1260: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:
1261: [Unity] ERROR: Building - Failed to write file: 0000000000000000d000000000000000
1262: [Unity] ERROR: File Library/Unused/20ae6e83037504fb99d7208afe1c36b4 couldn't be written. Because moving /BUILD_PATH/.dwwuslmlg/Temp/UnityTempFile-86ecb9516b1844531adb4c072554c356 to /BUILD_PATH/Library/Preferences/Unity/Editor-5.x/Layouts/LastLayout.dwlt failed.
1263: [Unity] ERROR: File Library/Unused/20ae6e83037504fb99d7208afe1c36b4 couldn't be written. Because moving /BUILD_PATH/pt.dwwuslmlg/Temp/UnityTempFile-b24e1fe5446324486b458ff5fe9e8e9d to /BUILD_PATH/Library/Preferences/Unity/Editor-5.x/Layouts/LastLayout.dwlt failed.
1264: publishing finished successfully.
1265: Finished: FAILURE

对于完整日志,您可以在此处...

For Full Log You can Find here...

有什么想法吗?

先谢谢您...

推荐答案

i会将您的日志分成几部分并回答您

i will break your log to parts and answer you

1207: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth' - Pass '' has no 
vertex shader
1208: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth' - Setting to default 
 shader.
1209: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth_MSAA' - Pass '' has no vertex shader
1210: [Unity] WARNING: Shader Unsupported: 'Hidden/BlitToDepth_MSAA' - Setting to default shader.

在这里有一些着色器错误(我认为这些是后期处理着色器) 检查这些着色器BlitToDepth_MSAA BlitToDepth

in here there are some shader errors (i think those are post processing shaders) check these shaders BlitToDepth_MSAA BlitToDepth

1211: [Unity] Script attached to 'Scene Variables' in scene'Assets/z_scene/ENGLISH/Games/EN_Guess_Object_Portable.unity' is missing or no valid script is attached.
1212: [Unity] Script attached to 'Scene Variables' in scene 'Assets/z_scene/ENGLISH/Games/EN_Guess_Object_Portable.unity' is missing or no valid script is attached.
1213: [Unity] Script attached to 'Missing Prefab (Dummy)' in scene 'Assets/z_scene/ENGLISH/Games/EN_Guess_Object_Portable.unity' is missing or no valid script is attached.
1214: [Unity] Script attached to 'Missing Prefab (Dummy)' in scene 'Assets/z_scene/ENGLISH/Games/EN_Guess_Object_Portable.unity' is missing or no valid script is attached.
1215: [Unity] Script attached to 'Missing Prefab (Dummy)' in scene 'Assets/z_scene/ENGLISH/Games/EN_Guess_Object_Portable.unity' is missing or no valid script is attached.

这些错误来自某些物体和场景 转到EN_Guess_Object_Portable场景并检查scene variables对象.该对象的脚本无效.

those error are from some objects and scenes go to EN_Guess_Object_Portable scene and check the scene variables object. this object have invalid scripts.

,并且缺少预制件,并且该预制件也具有无效的脚本.检查同一场景中的Missing Prefab (Dummy)对象

and there is prefab that is missing and that prefab has invalid scripts too. check Missing Prefab (Dummy) object in the same scene

1235: [Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:

要解决此错误,您需要从构建设置中取消选中所有场景

to solve this error you need to untick all the scenes from your build settings

然后您需要通过打勾一个场景并单击"build"来一次构建一个场景 这样,您可以找到哪个场景有错误,然后可以解决该场景中的错误

then you need to build one scene at time by ticking one scene and and clicking build that way you can find what scene have the error then you can solve the error in that scene

并查看资产调用Lucida Grande此资产有一些错误

and look at asset call Lucida Grande this asset have some errors

这篇关于Unity3D-由于"[Unity]错误:构建失败:资产标记有HideFlags.DontSave,但包含在构建中:"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆