{"id":13664195,"url":"https://github.com/songkyoo/UVViewer","last_synced_at":"2025-04-25T21:30:21.385Z","repository":{"id":221795995,"uuid":"124322324","full_name":"songkyoo/UVViewer","owner":"songkyoo","description":"Displays mesh's UV in Unity editor window.","archived":false,"fork":false,"pushed_at":"2022-03-14T14:03:14.000Z","size":87,"stargazers_count":63,"open_issues_count":0,"forks_count":29,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-10T21:40:08.370Z","etag":null,"topics":["editor","unity"],"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/songkyoo.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}},"created_at":"2018-03-08T02:08:02.000Z","updated_at":"2024-10-14T07:33:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9b73b30-0d5f-4b2a-a9d2-b5a9082f4f6b","html_url":"https://github.com/songkyoo/UVViewer","commit_stats":null,"previous_names":["songkyoo/uvviewer"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songkyoo%2FUVViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songkyoo%2FUVViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songkyoo%2FUVViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/songkyoo%2FUVViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/songkyoo","download_url":"https://codeload.github.com/songkyoo/UVViewer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250899257,"owners_count":21504862,"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":["editor","unity"],"created_at":"2024-08-02T05:02:49.278Z","updated_at":"2025-04-25T21:30:21.370Z","avatar_url":"https://github.com/songkyoo.png","language":"C#","funding_links":[],"categories":["C\\#"],"sub_categories":[],"readme":"# UV Viewer for Unity Editor\nUVViewerWindow는 유니티 에디터에서 메시의 UV를 확인할 수 있는 에디터 윈도우 확장 클래스입니다. 유니티 5.4 버전 이상이 필요합니다.\n\n![](Screenshot.png)\n\n## 설치\n[릴리스 페이지](https://github.com/songkyoo/UVViewer/releases)에서 유니티 패키지를 다운로드 받아 임포트하거나 [Assets/Plugins](Assets/Plugins) 폴더를 프로젝트로 복사하면 메뉴바의 Window 항목에 UV Viewer가 추가됩니다. 해당 항목을 실행하면 에디터 윈도우가 생성됩니다.\n\n## 사용법\n### 메시 설정\nMesh 항목이 Selected Object일 경우 메시 혹은 MeshFilter, SkinnedMeshRenderer 컴포넌트를 포함하는 게임 오브젝트를 선택하면 UV를 표시합니다.\n\nMesh 항목을 Custom으로 설정하면 메시를 직접 설정할 수 있습니다. 오브젝트를 뷰 영역으로 드래그 앤 드롭해도 동일한 동작을 수행합니다. 드래그 가능한 오브젝트는 메시 혹은 MeshFilter, SkinnedMeshRenderer 컴포넌트를 포함하는 게임 오브젝트입니다.\n\n### 텍스처 설정\nMesh 항목이 Selected Object일 경우 선택한 게임 오브젝트가 MeshRenderer, SkinnedMeshRenderer 컴포넌트를 포함한다면 Texture 항목을 Materials로 설정했을 경우 렌더러에 포함된 머티리얼의 텍스처를 선택할 수 있습니다.\n\nTexture 항목을 Custom으로 설정하면 텍스처를 직접 설정할 수 있습니다. 텍스처를 뷰 영역으로 드래그 앤 드롭해도 동일한 동작을 수행합니다.\n\n### 에디터 스크립트에서 접근하기\n에디터 스크립트에서 생성한 메시 혹은 텍스처를 설정할 수 있습니다. 다음 코드는 윈도우가 표시되고 있다면 표시되고 있는 윈도우에 값을 설정하고 표시되는 윈도우가 없다면 새로운 윈도우를 생성하고 값을 설정합니다.\n\n```csharp\nusing Macaron.UVViewer.Editor;\n\nclass EditorClass\n{\n    void SetCustom(Mesh mesh, Texture texture)\n    {\n        // 메시 설정.\n        UVViewerWindow.ShowWindow().SetCustomMesh(mesh);\n\n        // 텍스처 설정.\n        UVViewerWindow.ShowWindow().SetCustomTexture(texture);\n    }\n}\n```\n\n`SetCustomMesh`, `SetCustomTexture` 메서드를 호출하면 Mesh, Texture 항목이 Custom으로 변경되고 호출한 값으로 Source가 설정됩니다. 각 메서드는 개별적으로 호출될 수 있습니다.\n\n## 제한 사항\n1. 표시되는 UV와 텍스처는 원본에 대한 변경을 자동으로 반영하지 않습니다. 갱신이 필요할 경우 Mesh, Texture 항목의 Reload 버튼을 눌러 다시 로드해야합니다.\n\n2. Geometry 셰이더가 지원되지 않는 경우 Line Thickness 항목을 사용할 수 없고, HiDPI 환경에서 뷰 영역이 저해상도로 표시됩니다.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongkyoo%2FUVViewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsongkyoo%2FUVViewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongkyoo%2FUVViewer/lists"}