The answer to this really depends on the individual teacher. Many university professors are primarily scholars who hope to leave as a legacy some unique contribution to their discipline in the form of books and journal articles. Much of the work we do as scholars builds on the legacies handed down to us by our professors and earlier scholars in our field in an unbroken intellectual tradition that goes back for centuries. Our graduate students carry on that tradition in their own research and teaching. Other teachers may be primarily focused on work with undergraduates and more concerned with a legacy of personal influence on student lives.