Ejemplo n.º 1
0
        public static GameObject LoadVoxelFileAsPrefab(string path, string outpath = "Assets/", int lodLevel = 0)
        {
            var voxel = VoxFileImport.Load(path);

            return(LoadVoxelFileAsPrefab(voxel, Path.GetFileNameWithoutExtension(path), outpath, lodLevel));
        }
Ejemplo n.º 2
0
        public static GameObject LoadVoxelFileAsGameObjectLOD(string path, int lodLevel)
        {
            var voxel = VoxFileImport.Load(path);

            return(LoadVoxelFileAsGameObject(Path.GetFileNameWithoutExtension(path), voxel, lodLevel));
        }