This is an unique opportunity.
This is a unique opportunity.
He is an university professor.
He is a university professor.
Choose a or an according to the first sound of the next word, not its first letter. Unique and university begin with the same sound as you, so we use a.