uzh-rpg / flymation

Flexible Animation for Flying Robots
MIT License
63 stars 2 forks source link

Missing Prefabs Due to Absence of .meta Files in Unity Project #1

Open tugepaopaoo opened 3 months ago

tugepaopaoo commented 3 months ago

Hello,

First of all, thanks for your excellent work. I encountered some problems when trying to run this project in Unity. Specifically, there are errors of missing prefabs in the project. I suspect this may be due to the absence of some .meta files in the project.

If possible, could you check and re-upload these .meta files?

Thank you again for your contribution to this project, and I look forward to your help!

yun-long commented 3 months ago

Could you provide more details about the errors? It should be an easy fix.

tugepaopaoo commented 3 months ago

The detailed error information is shown in the following figure:

image

Actually, I am not familiar with Unity, so I also try running the Flightmare_unity project in Unity. Fortunately, it works very well. Therefore, I compared the project files of the two to find the reason.

The file comparison is as follows:

image

After searching, I learned that meta files in Unity are used to manage resources. If meta files are missing, Unity will not recognize the corresponding assets. Even if the asset files exist, Unity will treat them as new assets, leading to prefabs, scenes, etc., failing to load resources correctly.

I suspect that when the Flymation project is run in Unity for the first time, some meta files are automatically generated. However, the resource index information contained in these files is incorrect, which causes the issue of missing prefabs.

Maybe modifying the .gitignore and then re-uploading could fix this issue.