{"id":13786324,"url":"https://github.com/baba-s/UniWebViewMarginsFromRectTransform","last_synced_at":"2025-05-11T22:30:52.185Z","repository":{"id":110295335,"uuid":"180709386","full_name":"baba-s/UniWebViewMarginsFromRectTransform","owner":"baba-s","description":"【Unity】unity-webview のマージンを RectTranform から設定できる機能","archived":false,"fork":false,"pushed_at":"2020-06-12T13:45:15.000Z","size":19,"stargazers_count":19,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-01T15:02:06.431Z","etag":null,"topics":["kogane-unity-lib","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baba-s.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":"2019-04-11T03:44:14.000Z","updated_at":"2024-04-23T21:51:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"705b4102-7b7b-459c-90c9-4ea8ec63e695","html_url":"https://github.com/baba-s/UniWebViewMarginsFromRectTransform","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/baba-s%2FUniWebViewMarginsFromRectTransform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baba-s%2FUniWebViewMarginsFromRectTransform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baba-s%2FUniWebViewMarginsFromRectTransform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baba-s%2FUniWebViewMarginsFromRectTransform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baba-s","download_url":"https://codeload.github.com/baba-s/UniWebViewMarginsFromRectTransform/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":["kogane-unity-lib","unity","unity3d"],"created_at":"2024-08-03T19:01:13.764Z","updated_at":"2025-05-11T22:30:51.771Z","avatar_url":"https://github.com/baba-s.png","language":"C#","readme":"# Uni Web View Margins From RectTransform\n\n[unity-webview](https://github.com/gree/unity-webview) のマージンを RectTranform から設定できる機能\n\n## 使い方\n\n```cs\nvar rectTransform = GetComponent\u003cRectTransform\u003e();\nvar margins = WebViewUtils.ToMargins( rectTransform );\n\nm_webViewObject.SetMargins\n( \n    left    : margins.left  , \n    top     : margins.top   , \n    right   : margins.right , \n    bottom  : margins.bottom \n);\n```\n\nWebViewUtils.ToMargins に RectTransform を渡して、  \n取得できた値を WebViewObject.SetMargins に渡すことで、  \nRectTransform の範囲に WebView を表示できます　　\n\n## 謝辞\n\n - UniWebViewMarginsFromRectTransform は下記のサイト様のスクリプトを使用させていただいております\n https://qiita.com/fukaken5050/items/b0d0183c3c61630d9473","funding_links":[],"categories":["Script Utility"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaba-s%2FUniWebViewMarginsFromRectTransform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaba-s%2FUniWebViewMarginsFromRectTransform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaba-s%2FUniWebViewMarginsFromRectTransform/lists"}