Exemple #1
0
            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;
                }
            }
Exemple #2
0
            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;
                }
            }
Exemple #3
0
 static Rhino5Importer()
 {
     RePort.RegisterImporter("3dm_5", new Rhino5Importer());
 }
Exemple #4
0
            static RhinoImporter()
            {
                var importer = new RhinoImporter();

                RePort.RegisterImporter("3dm_7", importer);
            }