Closed IsaiahKelly closed 6 years ago
Ah! I didn't know this, thanks for the research!
I wasn't super sure how I should host this project on github, since it was originally meant to just be a code library for working with Doom. Now it has become an engine too I will probably restructure the repo to host the entire project. I'll get those meta files added!
Should be fixed in 745d65a5d35ce91c56af9325f41471f4fd4c3ba5
I started to suspect that the issues I was seeing with missing script references on the player prefab had something to do with the exclusion of meta files, and it turns out my suspicion was correct!
To test this I created a GameObject, attached a few dummy scripts to it, and then saved it as a prefab.
Then I deleted all meta files and copied this prefab and it's scripts into a new Unity project and this was the result.
Both scripts attached to the prefab are still included in the folder and have not been renamed, but apparently Unity depends on the meta files to know what is attached to the prefab.
So you should NOT exclude meta files if you want prefabs (and probably other files) to work properly in Unity!
I was going to make a commit to change this myself, but it's probably best if you do that yourself so the original meta files from your own project get added, instead of my own, which will have completely different IDs and might cause conflicts with yours.