ADB-001 unity resource_error ai_generated true

AssetDatabase: Missing .meta file for asset 'Assets/Textures/icon.png'

ID: unity/asset-database-missing-meta-file

Also available as: JSON · Markdown · 中文
92%Fix Rate
88%Confidence
1Evidence
2024-07-22First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
Unity 2021.3 active
Unity 2022.3 active
Unity 2023.1 active

Root Cause

A .meta file is missing or corrupted for a project asset, often due to manual file operations outside Unity or version control conflicts.

generic

中文

项目资产的 .meta 文件丢失或损坏,通常是由于 Unity 外部的文件操作或版本控制冲突导致。

Official Documentation

https://docs.unity3d.com/Manual/AssetDatabase.html

Workarounds

  1. 90% success Regenerate the .meta file by selecting the asset in the Project window and clicking 'Assets > Reimport' or pressing Ctrl+R.
    Regenerate the .meta file by selecting the asset in the Project window and clicking 'Assets > Reimport' or pressing Ctrl+R.
  2. 95% success Use the 'Assets > Reimport All' option to regenerate all .meta files in the project.
    Use the 'Assets > Reimport All' option to regenerate all .meta files in the project.

中文步骤

  1. 通过在项目窗口中选择资产并单击“资产 > 重新导入”或按 Ctrl+R 来重新生成 .meta 文件。
  2. 使用“资产 > 全部重新导入”选项重新生成项目中的所有 .meta 文件。

Dead Ends

Common approaches that don't work:

  1. Delete the asset file and re-import it from the original source. 35% fail

    This may not regenerate the .meta file correctly if the asset is re-imported with the same GUID conflicts.

  2. Copy a .meta file from another asset and rename it. 75% fail

    Each .meta file contains a unique GUID; using a duplicate can cause GUID collisions and further errors.