unity game engine - After commit to git, all gameobjects loose their assets - Stack Overflow

admin2025-04-30  0

After i commit my unity project on to github, all the gameobjects loose their assets. It looks like the asset id's change. asset id's changing

I have checked my gitignore and it looks identical as the one here Ai doesn't have a clue on how to help and gives me instructions that i have already done. I'm really lost here, Is there anyone kind enough to help me out? Thank you everyone

After i commit my unity project on to github, all the gameobjects loose their assets. It looks like the asset id's change. asset id's changing

I have checked my gitignore and it looks identical as the one here Ai doesn't have a clue on how to help and gives me instructions that i have already done. I'm really lost here, Is there anyone kind enough to help me out? Thank you everyone

Share Improve this question asked Jan 5 at 1:01 honzanugetahonzanugeta 11 silver badge 1
  • Have you committed the meta files? Because this sounds like a typical GUID reset due to missing meta files .. – derHugo Commented Jan 5 at 1:32
Add a comment  | 

1 Answer 1

Reset to default 1

You are missig .meta files, prefabs use guuid to link the different resources and objects it needs.

Best course of action is to delete your Library, temp and Obj folder, let Unity regenerate everything, make a clean commit on a separate branch and when merging into your working brach take all from origin to block the override.

转载请注明原文地址:http://anycun.com/QandA/1746021707a91461.html