瀏覽代碼

Added dictionary to store prefabs and instances

punkoffice 9 年之前
父節點
當前提交
0889cc8756
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Exporters/Unity 5/Unity3D2Babylon/SceneBuilder.cs

+ 4 - 0
Exporters/Unity 5/Unity3D2Babylon/SceneBuilder.cs

@@ -108,6 +108,10 @@ namespace Unity3D2Babylon
             var itemsCount = gameObjects.Length;
 
             var index = 0;
+
+            //Dictionary to store prefabs and their instances
+            Dictionary<GameObject, List<BabylonAbstractMesh>> dicPrefabs = new Dictionary<GameObject, List<BabylonAbstractMesh>>();
+
             foreach (var gameObject in gameObjects)
             {
                 var progress = ((float)index / itemsCount);