Un- is prefixed to adjectives, or to words used adjectively.
To adjectives, to denote the absence of the quality designated by the adjective
To past particles, or to adjectives formed after the analogy of past particles, to indicate the absence of the condition or state expressed by them