{"id":19534847,"url":"https://github.com/feifeid47/unity-ui-adapter","last_synced_at":"2025-04-19T11:44:40.831Z","repository":{"id":142697600,"uuid":"594946805","full_name":"feifeid47/Unity-UI-Adapter","owner":"feifeid47","description":"Unity中的UI适配器，水平适配器、垂直适配器、角度适配器、安全区域适配器。 为UI布局、异形屏适配提供解决方案。","archived":false,"fork":false,"pushed_at":"2023-01-30T04:06:41.000Z","size":1388,"stargazers_count":75,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-29T07:33:09.131Z","etag":null,"topics":["ugui","unity","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/feifeid47.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":"2023-01-30T03:59:07.000Z","updated_at":"2025-03-25T07:40:47.000Z","dependencies_parsed_at":"2023-04-07T05:32:15.403Z","dependency_job_id":null,"html_url":"https://github.com/feifeid47/Unity-UI-Adapter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feifeid47%2FUnity-UI-Adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feifeid47%2FUnity-UI-Adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feifeid47%2FUnity-UI-Adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feifeid47%2FUnity-UI-Adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feifeid47","download_url":"https://codeload.github.com/feifeid47/Unity-UI-Adapter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249685583,"owners_count":21310628,"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":["ugui","unity","unity3d"],"created_at":"2024-11-11T02:15:53.510Z","updated_at":"2025-04-19T11:44:40.826Z","avatar_url":"https://github.com/feifeid47.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 特点\r\n```\r\n(1) 简单易用，挂载脚本后无需其他操作。  \r\n(2) 编辑器下可实时查看效果。  \r\n```\r\n\r\n# 如何使用\r\n## 垂直适配器  \r\n在Items的父物体挂载`VerticalAdapter`脚本，Items的X轴坐标将被控制，Y轴坐标不受影响。  \r\n动态添加或删除元素，会自动适配，如果关闭每帧计算，需要手动调用适配方法。  \r\n![VerticalAdapter](./README/VerticalAdapter.gif) \r\n## 水平适配器  \r\n在Items的父物体挂载`HorizontalAdapter`脚本，Items的Y轴坐标将被控制，X轴坐标不受影响。    \r\n动态添加或删除元素，会自动适配，如果关闭每帧计算，需要手动调用适配方法。  \r\n![HorizontalAdapter](./README/HorizontalAdapter.gif)  \r\n## 角度适配器  \r\n在Items的父物体挂载`AngleAdapter`脚本，Items的X轴坐标、Y轴坐标和旋转将被控制。  \r\n动态添加或删除元素，会自动适配，如果关闭每帧计算，需要手动调用适配方法。 \r\n![AngleAdapter](./README/AngleAdapter.gif)  \r\n## 安全区域适配器  \r\n在UI面板上挂载`SafeAreaAdapter`脚本，UI面板显示时会自动适配异形屏。  \r\n`SafeAreaAdapter`在使用时需要进行初始化。  \r\n```C#\r\nCanvasScaler scaler;\r\nSafeAreaAdapter.Init(scaler);\r\n```\r\n![SafeAreaAdapter](./README/SafeAreaAdapter.gif)  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeifeid47%2Funity-ui-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeifeid47%2Funity-ui-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeifeid47%2Funity-ui-adapter/lists"}