{"id":21991820,"url":"https://github.com/tlabaltoh/tlabwebviewvr","last_synced_at":"2025-10-29T01:34:11.169Z","repository":{"id":162099352,"uuid":"636701536","full_name":"TLabAltoh/TLabWebViewVR","owner":"TLabAltoh","description":"Sample Unity project for using TLabWebView in OculusQuest. Includes Meta XR SDK and XR Interaction Toolkit implementation example.","archived":false,"fork":false,"pushed_at":"2024-10-17T03:18:44.000Z","size":627201,"stargazers_count":41,"open_issues_count":4,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-19T05:36:19.275Z","etag":null,"topics":["android","oculus-quest","unity","unity3d","vr","webview"],"latest_commit_sha":null,"homepage":"https://tlabgames.gitbook.io/tlabwebview/","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/TLabAltoh.png","metadata":{"files":{"readme":"README-ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-05-05T12:54:18.000Z","updated_at":"2024-10-17T03:18:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"3075d302-d473-4d3a-a412-65b2a0945faa","html_url":"https://github.com/TLabAltoh/TLabWebViewVR","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/TLabAltoh%2FTLabWebViewVR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TLabAltoh%2FTLabWebViewVR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TLabAltoh%2FTLabWebViewVR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TLabAltoh%2FTLabWebViewVR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TLabAltoh","download_url":"https://codeload.github.com/TLabAltoh/TLabWebViewVR/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227206381,"owners_count":17747734,"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":["android","oculus-quest","unity","unity3d","vr","webview"],"created_at":"2024-11-29T20:11:48.462Z","updated_at":"2025-10-29T01:34:11.090Z","avatar_url":"https://github.com/TLabAltoh.png","language":"C#","funding_links":["https://www.buymeacoffee.com/tlabaltoh"],"categories":[],"sub_categories":[],"readme":"# TLabWebViewVR  \n\n[```TLabWebView```](https://github.com/TLabAltoh/TLabWebView) (3D ウェブブラウザ / 3D WebView プラグイン) を OculusQuest で使用するためのサンプルUnityプロジェクト．[```Meta XR SDK```](https://developers.meta.com/horizon/downloads/package/meta-xr-sdk-all-in-one-upm) と [```XR Interaction Toolkit```](https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.0/manual/index.html) それぞれで実装したサンプルが内包されています．\n\n[ドキュメントはこちら](https://tlabgames.gitbook.io/tlabwebview)  \n[スニペットはこちら](https://gist.github.com/TLabAltoh/e0512b3367c25d3e1ec28ddbe95da497#file-tlabwebview-snippets-md)  \n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/tlabaltoh)\n\n\u003e [!WARNING]\n\u003e このプロジェクトはAndroidデバイス上でのみ動作します．Unity Editor上で実行してもWebページは表示されないことに注意してください．\n\n\u003e [!WARNING]\n\u003e Meta XR All-in-One SDK がバージョン74から参照エラーを起こしているようなので，今のところはバージョン72をキープしています (これについて言及されている[フォーラム](https://www.reddit.com/r/oculusdev/comments/1jn4l5k/error_implementing_meta_allinone_sdk/)).\n\n\u003e [!WARNING]\n\u003e このプロジェクトをOculus Questへデプロイする場合，Unity 6000.xでこのプロジェクトをビルドすることを私はお勧めしません．今現在，このプロジェクトをUnity 6000.xでビルドした場合，`HardwareBuffer`モードが動作が不安定になる問題が見つかっています([詳細はこちらのissueを参照してください](https://github.com/TLabAltoh/TLabWebViewVR/issues/39))．もしする場合は，[セットアップセクション]([[Setup section]()](https://github.com/TLabAltoh/TLabWebViewVR?tab=readme-ov-file#set-up))の\"Unity 6000.x向けの設定\"という項目を参考にしてください．\n\n\u003e [!WARNING]\n\u003e このプロジェクトは，WebViewの`CaptureMode`にデフォルトで`HardwareBuffer`を使用しています．また，`Graphics API`には`Vulkan`をデフォルトで使用しています．この`HardwareBuffer`オプションと`Vulkan` APIの組み合わせは，Oculus Questでは動作を確認していますが，他の一部のデバイスでは動かない可能性があります (例えばWebViewの画面が真っ白になってしまう等)．その場合，プロジェクトの`Graphics API`をデフォルトで設定されている`Vulkan`から`OpenGLES`へ変更する，もしくは，`CaptureMode`を`HardwareBuffer`から`ByteBuffer`に変更してください．\n\u003e\n\u003e \u003cdetails\u003e\n\u003e \u003cimg src=\"Media/image.1.png\" width=\"256\"\u003e\u003c/img\u003e\u003cbr\u003e\n\u003e \u003cimg src=\"Media/image.2.png\" width=\"256\"\u003e\u003c/img\u003e\n\u003e \u003c/details\u003e\n\n## スクリーンショット  \n\n[Watch on Youtube](https://youtu.be/q3swlSP1mRg)  \n![output](Media/tlab-webview-vr.gif)\n\n## 動作環境\n|         |                     |\n| ------- | ------------------- |\n| Headset | Oculus Quest 2      |\n| GPU     | Qualcomm Adreno 650 |\n| Unity   | 2021.37f1           |\n\n## スタートガイド\n### 必要なもの\n- Unity 2021.3.26f1 (```meta-xr-sdk``` が Unity Editor 2021.26f1以降を必要とします)  \n- [meta-xr-all-in-one-sdk](https://assetstore.unity.com/packages/tools/integration/meta-xr-all-in-one-sdk-269657?locale=ja-JP)\n- [com.unity.xr.interaction.toolkit](https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.0/manual/index.html)\n- [TLabVKeyborad](https://github.com/TLabAltoh/TLabVKeyborad)\n- [TLabWebView](https://github.com/TLabAltoh/TLabWebView)\n\n### インストール\n- 任意のディレクトリに以下のコマンドでリポジトリをクローン\n```\ngit clone https://github.com/TLabAltoh/TLabWebViewVR.git\n\t\ncd TLabWebViewVR\n\t\ngit submodule update --init\n```\n\n### セットアップ\n[こちら](https://github.com/TLabAltoh/TLabWebView/blob/master/README-ja.md#%E3%82%BB%E3%83%83%E3%83%88%E3%82%A2%E3%83%83%E3%83%97)のセットアップセクションを参照してください\n\n\u003cdetails\u003e\u003csummary\u003eOpenXRを使用する場合\u003c/summary\u003e\n\nXR Plugin Manegementから`Force Remove Internet Permission`を無効にしてください．\n\n\u003cimg src=\"Media/image.png\" width=\"512\"\u003e\u003c/img\u003e\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eUnity 6000.x向けの設定\u003c/summary\u003e\n\nこのプロジェクトをUnity 6000.xで開くと，TMProのリソースでコンパイルエラーが発生します．これを解消するために，TMProのリソースを再度インポートしてください．\n\n\u003cimg src=\"Media/image.3.png\" width=\"256\"\u003e\u003c/img\u003e  \n\nまた，`CaptureMode`を，デフォルトの`HardwareBuffer`から`ByteBuffer`に変更してください．\n\n\u003cimg src=\"Media/image.1.png\" width=\"256\"\u003e\u003c/img\u003e  \n\u003cimg src=\"Media/image.2.png\" width=\"256\"\u003e\u003c/img\u003e\n\n\u003c/details\u003e\n\n### サンプルシーン\n\n#### Meta XR SDK\n```Assets/TLab/TLabWebViewVR/MetaXR/Samples/Scenes/MetaXR Sample.unity```\n\n\n#### XR Interaction Toolkit\n```Assets/TLab/TLabWebViewVR/XRInteractionToolkit/Samples/Scenes/XRInteractionToolkit Sample.unity```\n\n## サンプルリポジトリ for Unity 2022\n- [Oculus Integration Sample](https://github.com/TLabAltoh/TLabWebViewVR-OculusIntegration-2022)\n- [XR Interaction Toolkit Sample (VR Template)](https://github.com/TLabAltoh/TLabWebViewVR-XRInteractionToolkit-2022)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlabaltoh%2Ftlabwebviewvr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftlabaltoh%2Ftlabwebviewvr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftlabaltoh%2Ftlabwebviewvr/lists"}