Unity Metafile Errors

I know that the name may sound inaccurate, but that is because I'm not sure where my mistake came from ...

Firstly, here is my folder organization:

  • Assets
    • Scenes
    • Scenarios
      • MemoryCard.cs
      • Scenecontroller.cs
    • Sprites

At the beginning, the “MemoryCard” file was named “MemoryCards” (note the “s” at the end). I use "Monodevelop" to edit my files using the Unity built-in text editor, and when editing the file, I decided to rename it through Monodevelop ... which turned out to be a bad idea, as there is now a warning message:

"A metadata file (.meta) exists, but its Assets / Scripts / MemoryCards.cs resource cannot be found. When moving or deleting files outside of Unity, make sure that the corresponding .meta file is moved or deleted with it."

First I deleted the .cs file and created a new one, but the error remains ...

My problem is that I don’t know which metafile to look for, since the "MemoryCards.cs.meta" metafile was deleted and replaced when creating a new script with its corresponding .meta file ...

I assume that there is some specific file referencing all metafiles, such as a tree or so ... but I have not found a single document on the Internet.

I hope one of you can help me :)

Thank you in advance,

Axel

+5
source share
1 answer

Renaming the file in Monodevelop caused an error with the meta file.

My problem was solved by deleting the meta and script file, and then creating a new script file.

BUT, if you do not make the correct links / links to the new file and do not allow the game to run, Unity will warn you that the error remains ... but not there.

So, if you look like me, “a person who cannot continue until all errors have been resolved” ... Well, just ignore it and create your project, the error will disappear.

+2
source

Source: https://habr.com/ru/post/1264018/


All Articles