public override void CreateFolderFile(string folder)
{
XDocument doc = new XDocument();
XElement root = new XElement("boneData");
doc.Add(root);
root.Add(new XElement("parentIndex", this.ParentIndex));
root.Add(new XElement("position", this.Position));
root.Add(new XElement("rotation", this.Rotation));
root.Add(new XElement("scale", this.Scale));
string fileName = System.IO.Path.Combine(folder, "boneData.xml");
using (FileStream stream = System.IO.File.Create(fileName))
{
doc.Save(stream);
}
}