public void DeserializeBeforeRef(UABUnpacker unpacker, UABField field, ref object value, List <ISerializer> serializers)
        {
            var data = new Data();

            unpacker.Deserialize(data, field.fields, serializers);
            value = MeshSerializerHelper.ReadMesh(System.Convert.FromBase64String(field.data));
        }
        public void Serialize(UABPacker packer, UABField field, ref object value, List <ISerializer> serializers)
        {
            field.serializatorId = this.GetId();
            field.fieldType      = FieldType.BinaryType;

            if (packer == null)
            {
                var bytes = MeshSerializerHelper.WriteMesh(value as Mesh, saveTangents: true);
                if (bytes != null)
                {
                    field.data = System.Convert.ToBase64String(bytes);
                }
            }
            else
            {
                var data = new Data();
                field.fields = packer.Serialize(data, serializers);
            }
        }