Example #1
0
 public Exporter(ExporterOptions options)
 {
     this.options   = options;
     materials      = new Dictionary <string, Material>();
     multiMaterials = new Dictionary <string, Material[]>();
     geometries     = new Dictionary <string, Mesh>();
     checkTags      = false;
 }
Example #2
0
 void OnEnable()
 {
     options                  = new ExporterOptions();
     options.dir              = string.Empty;
     options.exportLights     = true;
     options.exportMeshes     = true;
     options.exportCameras    = true;
     options.exportDisabled   = true;
     options.castShadows      = false;
     options.tags             = new string[0];
     selectTags               = false;
     options.writePNGTextures = false;
     options.minifyJSON       = true;
 }
Example #3
0
 void OnEnable()
 {
     Debug.Log("Three.JS Exporter started, " + DateTime.Now.ToLongTimeString());
     options                = new ExporterOptions();
     options.dir            = string.Empty;
     options.exportLights   = true;
     options.exportMeshes   = true;
     options.exportCameras  = true;
     options.exportDisabled = true;
     options.castShadows    = false;
     options.tags           = new string[0];
     selectTags             = false;
     options.minifyJSON     = true;
 }
Example #4
0
 void OnEnable()
 {
     options                                 = new ExporterOptions();
     options.dir                             = string.Empty;
     options.exportLights                    = true;
     options.exportMeshes                    = true;
     options.exportCameras                   = true;
     options.exportDisabled                  = true;
     options.castShadows                     = false;
     options.tags                            = new string[0];
     selectTags                              = false;
     options.forceDoubleSidedMaterials       = false;
     options.appendPNGExtensionToTextureURLs = false;
     options.minifyJSON                      = true;
 }