public void PostProcess() { BundleResource.PostProcess(); foreach (var jgo in rootGameObjects) { jgo.PostProcess(); } }
static void reset() { BundleResource.Reset(); BundleComponent.Reset(); BundleScene.Reset(); BundleGameObject.Reset(); BundleComponent.RegisterStandardComponents(); MeshExporter.Reset(); MaterialExporter.Reset(); }
public void Preprocess() { foreach (var jgo in rootGameObjects) { jgo.Preprocess(); } foreach (var jgo in rootGameObjects) { jgo.QueryResources(); // discover resources } BundleResource.Preprocess(); }
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); }