public SkinData(System.IO.BinaryReader reader) { var rotation = reader.ReadRotation(); var position = reader.ReadVector3(); var scale = reader.ReadSingle(); Matrix = Matrix4x4.TRS(position, rotation, new Vector3(scale, scale, scale)); boundingSphereOffset = reader.ReadVector3(); boundingSphereRadius = reader.ReadSingle(); var vertexCount = reader.ReadInt16(); vertexWeights = new SkinWeight[vertexCount]; for (var i = 0; i < vertexWeights.Length; i++) { vertexWeights[i] = new SkinWeight(reader); } }