Unity: Ignore SceneDependencyCache

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/com.unity.entities@1.0/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/com.unity.entities@1.0/changelog/CHANGELOG.html
This commit is contained in:
Jacob Foshee 2023-06-26 11:38:43 -05:00 committed by GitHub
parent 4488915eec
commit 117cda92b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,9 @@
# Recordings can get excessive in size
/[Rr]ecordings/
# Subscene dependency cache used by Entities (DOTS)
[Aa]ssets/SceneDependencyCache*
# Uncomment this line if you wish to ignore the asset store tools plugin
# /[Aa]ssets/AssetStoreTools*