I would say it is a bit out of fashion. At least here in Switzerland we call them "Ticketkontrolleur". I just googled it out of curiosity, and it turns out, they are also called "Zugbegleiter" nowadays. (Zug = train, begleiter = companion / attendant). But Schaffner should still be very well understood by most native German speakers.