public virtual void ConfigureImport(ModelImporter importer, string element) { switch (element) { case "places": RePort.PlacesImporter(importer); break; case "lights": RePort.PlacesImporter(importer); importer.importLights = true; break; default: RePort.MeshesImporter(importer); break; } }
public virtual void ImportModel(GameObject model, string element) { switch (element) { case "lights": var lightList = model.GetComponentsInChildren <Light>(); foreach (var light in lightList) { ConfigureLight(light); } break; case "places": // Keep empty placeholder transforms break; default: RePort.RemoveEmpty(model); break; } }
static Rhino5Importer() { RePort.RegisterImporter("3dm_5", new Rhino5Importer()); }
static RhinoImporter() { var importer = new RhinoImporter(); RePort.RegisterImporter("3dm_7", importer); }