{"id":19905131,"url":"https://github.com/solutena/getassetlist","last_synced_at":"2026-05-14T19:33:22.970Z","repository":{"id":150488513,"uuid":"574514549","full_name":"solutena/GetAssetList","owner":"solutena","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-13T01:01:21.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T21:41:02.066Z","etag":null,"topics":["assets","customeditor","unity"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/solutena.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-12-05T13:34:16.000Z","updated_at":"2024-05-13T01:01:24.000Z","dependencies_parsed_at":"2023-07-28T23:31:21.189Z","dependency_job_id":null,"html_url":"https://github.com/solutena/GetAssetList","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutena%2FGetAssetList","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutena%2FGetAssetList/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutena%2FGetAssetList/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solutena%2FGetAssetList/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solutena","download_url":"https://codeload.github.com/solutena/GetAssetList/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241335516,"owners_count":19946068,"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":["assets","customeditor","unity"],"created_at":"2024-11-12T20:31:34.071Z","updated_at":"2026-05-14T19:33:22.900Z","avatar_url":"https://github.com/solutena.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GetAssetList 함수\n```\nusing System.Linq;\n\npublic static List\u003cObject\u003e GetAssetList(string path, string filter)\n{\n    List\u003cstring\u003e assets = AssetDatabase.FindAssets(filter, new[] { path }).ToList();\n    return assets.ConvertAll(guid =\u003e AssetDatabase.LoadAssetAtPath\u003cObject\u003e(AssetDatabase.GUIDToAssetPath(guid)));\n}\n```\n\n에셋 경로 내의 리스트를 가져와 커스텀 에디터에서 활용 할 수 있습니다.\n\n## 예제\n\n```\n#if UNITY_EDITOR\nusing System.Collections.Generic;\nusing System.Linq;\nusing UnityEditor;\nusing UnityEngine;\n\npublic class CommandWindow : EditorWindow\n{\n\t[MenuItem(\"Window/CommandWindow\")]\n\tstatic void GetWindow()\n\t{\n\t\tGetWindow\u003cCommandWindow\u003e();\n\t}\n\n\tList\u003cObject\u003e list;\n\tint select = 0;\n\tstring path = \"Assets/Script/Item/\";\n\tstring filter = \"t:MonoScript\";\n\n\tprivate void OnGUI()\n\t{\n\t\tlist = GetAssetList(path, filter);\n\t\tselect = GUILayout.SelectionGrid(select, list.ConvertAll(obj =\u003e obj.name).ToArray(), 1, \"PreferencesKeysElement\");\n\t\tif (GUILayout.Button(\"Open\"))\n\t\t{\n\t\t\tObject script = AssetDatabase.LoadAssetAtPath\u003cMonoScript\u003e(path + list[select].name + \".cs\");\n\t\t\tAssetDatabase.OpenAsset(script);\n\t\t}\n\t}\n\n\tpublic static List\u003cObject\u003e GetAssetList(string path, string filter)\n\t{\n\t\tList\u003cstring\u003e assets = AssetDatabase.FindAssets(filter, new[] { path }).ToList();\n\t\treturn assets.ConvertAll(guid =\u003e AssetDatabase.LoadAssetAtPath\u003cObject\u003e(AssetDatabase.GUIDToAssetPath(guid)));\n\t}\n}\n#endif\n```\n![image](https://user-images.githubusercontent.com/22467083/205658292-4d45d245-48c5-420e-af16-db3899611da7.png)\n\n\n예제에선 Asset/Script/Item 경로의 스크립트들을 가져옵니다.\n\nOpen 버튼을 통해서 스크립트를 열 수 있습니다.\n\n스크립트로 구현된 아이템, 스킬 등을 편리하게 관리 할 수 있다.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolutena%2Fgetassetlist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolutena%2Fgetassetlist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolutena%2Fgetassetlist/lists"}