static void reset() { BundleResource.Reset(); BundleComponent.Reset(); BundleScene.Reset(); BundleGameObject.Reset(); BundleComponent.RegisterStandardComponents(); MeshExporter.Reset(); MaterialExporter.Reset(); }
public static string ExportGeometry(ref SceneData sceneData, ref SceneMeshRenderer smr, ref SceneMesh mesh, string spaces) { string osgData = spaces + "useDisplayList TRUE\n" + spaces + "useVertexBufferObjects FALSE\n"; if (smr != null) { osgData += MaterialExporter.ExportStateSet(ref sceneData, ref smr, spaces); } osgData += ExportGeometryData(ref sceneData, ref mesh, spaces); return(osgData); }