Understanding Git Management of Unity 5 Light Map Configuration Files (100 Mover).

Asked 2 years ago, Updated 2 years ago, 73 views

From Unity 5, if you bake LightMap, it's called LightmapSnapshot.asset. A file for LightMap is now created.

It seems that LightMap settings and primary data are stored. It will be a huge file that will exceed 100 Mb.

As a result, you will get stuck in the size limit of Git's file. Unity 5 projects using LightMap are no longer managed by Git.

How do you deal with this situation? Thank you for your cooperation.

unity3d github

2022-09-30 16:18

2 Answers

This is not just about Unity, but about managing large binary files in git (I'm sorry if it's not appropriate)

There is an extension called git media. Instead of managing the giant file itself, it manages its hash and stores the giant file itself elsewhere.

However, looking at the repository, it is hard to say that development is active.

git is weak for binary due to difference management, so I think it would be better to remove it from management in .gitignore (preparing CI servers for generation).


2022-09-30 16:18

The same question was asked at the official forum. I haven't looked at it in detail, but there is a saying that I should add it to .gitignore and regenerate it.

http://forum.unity3d.com/threads/is-lightmapsnapshot-asset-in-unity-5-the-same-as-unity-4s-lightprobes-asset.279969/

I don't know if it will be a solution.

GitHub Help can help you remove large files from your history.

https://help.github.com/articles/working-with-large-files/


2022-09-30 16:18

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.