GetComponent Generator For Unity Medium Blog. A Source Generator that automates creating GetComponent methods for components. Additionally, it includes a Roslyn Analyzer. This allows to provide a warning if the InitializeComponents method is not called. Default Way With Source Generator Unity.mp4