gitignore icon indicating copy to clipboard operation
gitignore copied to clipboard

Unity: Ignore SceneDependencyCache

Open jfoshee opened this issue 2 years ago • 1 comments

In a DOTS project (that is one referencing Unity Entities package) when you add a subscene Unity will add Assets/SceneDependencyCache

Note that working with subscenes is a requirement of DOTS https://docs.unity3d.com/Packages/[email protected]/manual/conversion-scene-overview.html

While SceneDependencyCache is unfortunately visible in the Project explorer it is not a user managed file. And if you delete it, it will be recreated.

Observe that Unity ignore this in their ECS samples
https://github.com/Unity-Technologies/EntityComponentSystemSamples/blob/master/.gitignore#L63C1-L63C29

It does seem the use of this folder is temporary, but I observe it in 2022.3 LTS version, so it may be with us for some time https://docs.unity3d.com/Packages/[email protected]/changelog/CHANGELOG.html

Finally, this comment from a Unity rep

These files should be in .gitignore in your project They will be moved into the Library folder when the asset pipeline supports that.

https://forum.unity.com/threads/scenedependencycache-shouldnt-be-an-asset.863140/#post-5685628

jfoshee avatar Jun 26 '23 16:06 jfoshee

+1 for this one! 👍🏿 Surprised it hasn't been added to the Unity.gitignore yet.

JarrydHuntley avatar Aug 04 '24 18:08 JarrydHuntley

This PR is stale because there have been no updates in 90 days. It will close after 180 days of inactivity. Leave a comment if you want to keep it open :smile:

github-actions[bot] avatar Jun 09 '25 16:06 github-actions[bot]