Browse Source

Added dictionary to store prefabs and instances

punkoffice 9 years ago
parent
commit
0889cc8756
1 changed files with 4 additions and 0 deletions
  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);