{"id":27244462,"url":"https://github.com/andersonmarquess/am_di","last_synced_at":"2026-04-30T13:34:38.050Z","repository":{"id":101155447,"uuid":"485069616","full_name":"AndersonMarquess/AM_DI","owner":"AndersonMarquess","description":"An alternative to drag and drop for serialized fields in unity.","archived":false,"fork":false,"pushed_at":"2023-02-14T13:17:41.000Z","size":87,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T21:01:16.584Z","etag":null,"topics":["plugin","unity","unity-asset","unity-editor"],"latest_commit_sha":null,"homepage":"","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/AndersonMarquess.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-04-24T15:46:29.000Z","updated_at":"2022-10-20T14:31:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f6f336a-c8d4-4d96-8bcc-dff6ae7766d1","html_url":"https://github.com/AndersonMarquess/AM_DI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndersonMarquess/AM_DI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndersonMarquess%2FAM_DI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndersonMarquess%2FAM_DI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndersonMarquess%2FAM_DI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndersonMarquess%2FAM_DI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndersonMarquess","download_url":"https://codeload.github.com/AndersonMarquess/AM_DI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndersonMarquess%2FAM_DI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32466333,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["plugin","unity","unity-asset","unity-editor"],"created_at":"2025-04-10T21:00:14.834Z","updated_at":"2026-04-30T13:34:38.045Z","avatar_url":"https://github.com/AndersonMarquess.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2\u003eHow to install?\u003c/h2\u003e\n\nAdd as custom git package with package manager:\n\n1. Open package manager\n2. Click on the plus (➕) button\n3. Choose \"Add package from git URL\"\n4. Past the url: \n```\nhttps://github.com/AndersonMarquess/AM_DI.git?path=/Packages/DependencyInitializer\n```\n\nor\n\nSet direct reference in manifest.json:\n```json\n\"com.andersonmarques.dependencyinitializer\": \"https://github.com/AndersonMarquess/AM_DI.git?path=/Packages/DependencyInitializer\"\n```\n\n\u003ch2\u003eHow to use?\u003c/h2\u003e\n\u003cp\u003e1 - Just add the desired attribute on the field that will be filled.\u003c/p\u003e\n\u003cp\u003e2 - In the transform of the gameobject, just click on \"Find\"\u003c/p\u003e\n\n![Transform component image with custom editor showing the Find button](https://raw.githubusercontent.com/AndersonMarquess/AM_DI/main/AM_DI.jpg)\n\n\u003cp\u003e3 - Done!\u003c/p\u003e\n\n\u003ch2\u003eUsage example in code\u003c/h2\u003e\n\u003chr\u003e\n\n```cs\n    [SerializeField, FindInScene]\n    private Light _sceneMainLight = null;\n    \n    [SerializeField, FindInScene(ActiveOnly = true)]\n    private SphereCollider _activeSphereInScene = null;\n        \n    [SerializeField, FindInParent]\n    private MockComponent _parentComponent = null;\n        \n    [SerializeField, FindInParent(IgnoreSelf = false)]\n    private Transform _firstAvailableTransform = null;\n\n    [SerializeField, FindInComponent]\n    private NavMeshAgent _myNavMeshAgent = null;\n\n    [SerializeField, FindInChild]\n    private Renderer _childRenderer = null;\n    \n    [SerializeField, FindInChild(Path = \"Plane/InnerChild\")]\n    private Renderer _specifChildRenderer = null;\n\n    [SerializeField, Initializable]\n    private MyDefaultCsharpClass _compositionClass = null;    \n    \n    [Serializable]\n    class MyDefaultCsharpClass \n    {\n        [SerializeField, FindInChild]\n        private Renderer _childRenderer = null;\n    }\n```\n\n\u003chr\u003e\n\u003ch2\u003eCurrently supported operations\u003c/h2\u003e\n\n- Find In Scene\n    - Active\n- Find In Parent\n    - Ignore Self\n- Find In Component\n- Find In Child\n    - Active\n    - With Path\n- Default class initialization\n\n\u003ch2\u003eWhy was it created?\u003c/h2\u003e\n\u003cp\u003eDrag and drop can be time consuming when done over and over again, having a button to fill dependencies saved me a lot of time.\u003c/p\u003e\n\n\u003ch2\u003eLicense\u003c/h2\u003e\n\n- Yes, can be used commercially.\n- No, you don't have to credit me, but that would be nice.\n- MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandersonmarquess%2Fam_di","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandersonmarquess%2Fam_di","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandersonmarquess%2Fam_di/lists"}