//============================================================ public void Unserialize(IInput input) { _boneId = input.ReadUint8(); _localMatrix.Unserialize(input); _worldMatrix.Unserialize(input); int count = input.ReadUint16(); for (int n = 0; n < count; n++) { FDxRsTrackFrame frame = new FDxRsTrackFrame(); frame.Unserialize(input); _frames.Push(frame); } }
//============================================================ public void Unserialize(IInput input) { // 读取设置 _id = input.ReadInt32(); _modelCode = input.ReadString(); _geometryName = input.ReadString(); _materialCode = input.ReadString(); // 存储矩阵 _originMatrix.Unserialize(input); _worldMatrix.Unserialize(input); // 读取模型 _model = RDxCore.ModelResourceConsole.Get(_modelCode); _geometry = _model.Mesh.Geometries.Get(_geometryName); _material = _template.Materials.Get(_materialCode); }
//============================================================ public void Unserialize(IInput input) { _tick = input.ReadUint8(); _localMatrix.Unserialize(input); _worldMatrix.Unserialize(input); }