public static XElement CreateAssetMeta(string filePath) { AssetItemType assetType = GetAssetFileType(filePath); XElement metaData = new XElement("MetaData"); switch (assetType) { default: // unknown file break; case AssetItemType.Mesh: Assimp.Scene scene = ObjectLoader.Import(filePath); foreach (Assimp.Node node in scene.RootNode.Children) { metaData.Add(BuildAssimpNodeTree(node)); } break; } return(metaData); }