{"id":13786344,"url":"https://github.com/Thundernerd/Unity3D-ComponentAttribute","last_synced_at":"2025-05-11T22:30:52.937Z","repository":{"id":89650667,"uuid":"46222998","full_name":"Thundernerd/Unity3D-ComponentAttribute","owner":"Thundernerd","description":"An attribute that let's you auto-load components","archived":false,"fork":false,"pushed_at":"2016-04-23T23:53:15.000Z","size":70,"stargazers_count":61,"open_issues_count":1,"forks_count":10,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-05T23:53:25.106Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Thundernerd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-11-15T15:19:57.000Z","updated_at":"2024-09-05T12:14:48.000Z","dependencies_parsed_at":"2024-01-17T05:47:06.810Z","dependency_job_id":"9c02955d-ccfe-4c45-a523-20edbc20eb8a","html_url":"https://github.com/Thundernerd/Unity3D-ComponentAttribute","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thundernerd%2FUnity3D-ComponentAttribute","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thundernerd%2FUnity3D-ComponentAttribute/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thundernerd%2FUnity3D-ComponentAttribute/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thundernerd%2FUnity3D-ComponentAttribute/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thundernerd","download_url":"https://codeload.github.com/Thundernerd/Unity3D-ComponentAttribute/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253645103,"owners_count":21941311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T19:01:14.091Z","updated_at":"2025-05-11T22:30:52.520Z","avatar_url":"https://github.com/Thundernerd.png","language":"C#","readme":"# Unity3D-ComponentAttribute\nAn attribute that let's you auto-load components\n\n* Works on fields and properties\n* Load components on awake, start, or enable, or whenever else you feel like it\n* Get component from other GameObjects (optional)\n* Add component if missing (optional)\n* Disable component on error (optional)\n\n*Credits go to [@ChevyRay](https://twitter.com/ChevyRay) for inspiring me to make this by this [tweet](https://twitter.com/ChevyRay/status/665673463856664576)*\n\nThe way of this.LoadComponents()\n-------------------------------\nThe 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.\n\nPros:\n* You don't have to do all those GetComponent calls to get the components you need\n* The more components you want, the less you have to do\n\nCons:\n* You have to write *[Component]* on top the of the Components you want this to work on\n* You also have to call *this.LoadComponents();*\n\n### Fields Example\n![Imgur](http://i.imgur.com/BSnZNWt.png)\n\n### Properties Example\n![Imgur](http://i.imgur.com/P3HrXcB.png)\n","funding_links":[],"categories":["Script Utility"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThundernerd%2FUnity3D-ComponentAttribute","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FThundernerd%2FUnity3D-ComponentAttribute","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FThundernerd%2FUnity3D-ComponentAttribute/lists"}