Skip to content

Commit 96d41c9

Browse files
committed
Disable MeshColliders
- Increases loading times by another 20% ontop of other changes. (Loading times since v0.1.0 are now 70% faster)
1 parent 1f2294b commit 96d41c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/MapEditor/Managers/PrefabManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public static GameObject Process(GameObject go, string filePath)
5050
foreach (var item in go.GetComponentsInChildren<MeshCollider>())
5151
{
5252
item.cookingOptions = MeshColliderCookingOptions.None;
53+
item.enabled = false;
5354
item.isTrigger = false;
5455
item.convex = false;
5556
}

0 commit comments

Comments
 (0)