Skip to content

wewrere41/Unity-GetComponent-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

ExampleA

With Source Generator

ExampleB

Unity.mp4