From 117cda92b73fc365716f0ad6a159f2cbb3af4391 Mon Sep 17 00:00:00 2001 From: Jacob Foshee Date: Mon, 26 Jun 2023 11:38:43 -0500 Subject: [PATCH] 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 --- Unity.gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Unity.gitignore b/Unity.gitignore index 58cbc825..d61cc2f5 100644 --- a/Unity.gitignore +++ b/Unity.gitignore @@ -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*