Home

Awesome

Unity3D-ComponentAttribute

An attribute that let's you auto-load components

Credits go to @ChevyRay for inspiring me to make this by this tweet

The way of this.LoadComponents()

The only thing you have to do is add the component attribute to fields and/or properties that you want and call this.LoadComponents(); in the awake, start, on enable, or any other place for that matter and you are good to go.

Pros:

Cons:

Fields Example

Imgur

Properties Example

Imgur