コード例 #1
0
 // By the time this is called, our assets should be ready to create the map prefab
 public void MeshImported(string objPath)
 {
     string xmlPath = ImportUtils.GetXmlPathFromFile(objPath);
     XDocument doc = XDocument.Load(xmlPath);
     foreach (var xmlPrefab in doc.Root.Elements("Prefab"))
     {
         CreatePrefab(xmlPrefab, objPath);
     }
 }