$ 0 0 serialize will use the origin id. newMat = mat.clone(newName) can't work. need set newMat.id = newName.