In Sonic Generations, Shadow is not a playable character you unlock—he shows up as a rival you race against.
So rather than adding him to your roster, you will face off against him during certain stages.