This commit is contained in:
CortexCore
2025-06-12 16:08:12 +08:00
parent 4c2534a6e9
commit a772331918
10 changed files with 108 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ namespace Net.Project.B.WorldNode
if (!searchGameObject) continue;
hashSet.UnionWith(searchGameObject.GetComponentsInChildren<Transform>());
}
staticGameObjects = hashSet.Select(x => x.gameObject).ToArray();
staticGameObjects = hashSet.Where(x=>x.gameObject.isStatic).Select(x => x.gameObject).ToArray();
}
else
{