簡體   English   中英

Unity3D - 構建失敗,因為“[Unity] 錯誤:資產標記為 HideFlags.DontSave 但包含在構建中:”

[英]Unity3D - Build Failed because of "[Unity] ERROR: An asset is marked with HideFlags.DontSave but is included in the build:"

使用Unity Cloud Build Service ,我的構建失敗,因為“[Unity] 錯誤:資產標有 HideFlags.DontSave 但包含在構建中:”錯誤。

到目前為止我所做的:

1)我試圖刪除Project Setting並重新打開 Unity,但構建仍然失敗......

2)在預制件和所有場景上將所有“Arial”字體更改為自定義字體,但仍然失敗......

以下是 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

如需完整日志,您可以在此處找到...

任何想法?

先感謝您...

我會把你的日志分成幾部分然后回答你

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

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.

這些錯誤來自某些對象和場景 go 到EN_Guess_Object_Portable場景並檢查scene variables object。 此 object 的腳本無效。

並且缺少預制件,並且預制件也有無效的腳本。 在同一場景中檢查Missing Prefab (Dummy) object

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

要解決此錯誤,您需要從構建設置中取消所有場景

然后您需要通過勾選一個場景並單擊構建來構建一個場景,這樣您可以找到哪個場景有錯誤,然后您可以解決該場景中的錯誤

並查看資產調用Lucida Grande這個資產有一些錯誤

看起來錯誤是由DoozyUI插件引起的,在這個統一論壇上有類似的案例。

我們已經讓其他客戶使用 DoozyUI 插件體驗了完全相同的行為。 問題在於插件中的 GUISkins,一旦移動到編輯器默認資源文件夾並修復相關腳本,問題就解決了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM