In the campaign you have to play through the story, and completing a level unlocks that level's hero character for use in it.
Conquest mode is the easier answer, though — every hero is available to you there from the start, no unlocking required.
So if you just want to swing a lightsaber immediately, skip the campaign and load up Conquest.