private Stream UnParseClear() { MemoryStream s = new MemoryStream(); BinaryWriter w = new BinaryWriter(s); w.Write(major); w.Write(minor); if (bones == null) { bones = new BoneList(OnResourceChanged); } bones.UnParse(s); if (skeletonName == null) { skeletonName = ""; } w.Write(skeletonName.Length); w.Write(skeletonName.ToCharArray()); if (major >= 4) { if (ikChains == null) { ikChains = new IKChainList(OnResourceChanged); } ikChains.UnParse(s); } return(s); }