Exemple #1
0
 public void PostProcess()
 {
     BundleResource.PostProcess();
     foreach (var jgo in rootGameObjects)
     {
         jgo.PostProcess();
     }
 }
Exemple #2
0
        static void reset()
        {
            BundleResource.Reset();
            BundleComponent.Reset();
            BundleScene.Reset();
            BundleGameObject.Reset();
            BundleComponent.RegisterStandardComponents();

            MeshExporter.Reset();
            MaterialExporter.Reset();
        }
Exemple #3
0
 public void Preprocess()
 {
     foreach (var jgo in rootGameObjects)
     {
         jgo.Preprocess();
     }
     foreach (var jgo in rootGameObjects)
     {
         jgo.QueryResources(); // discover resources
     }
     BundleResource.Preprocess();
 }
Exemple #4
0
        public SceneData GetSceneData()
        {
            var sceneData = new SceneData();

            sceneData.name      = sceneName;
            sceneData.resources = BundleResource.GetObjectData();
            sceneData.hierarchy = new List <SceneGameObject>();

            foreach (var go in rootGameObjects)
            {
                sceneData.hierarchy.Add(go.GetObjectData());
            }
            return(sceneData);
        }