Cancer of the eye is uncommon. It can affect the outer and inner parts of the eye.