소스 검색

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 itemsCount = gameObjects.Length;
 
 
             var index = 0;
             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)
             foreach (var gameObject in gameObjects)
             {
             {
                 var progress = ((float)index / itemsCount);
                 var progress = ((float)index / itemsCount);