DEV Community

KOGA Mitsuhiro
KOGA Mitsuhiro

Posted on • Originally published at qiita.com

【Unity】そろそろXR Managementに対応したOpenVR XR Pluginがリリースされそう

はじめに

Unityの既存のVRサポートは2020.1で廃止されXR Managementに一本化されます。
今までOpenVR対応プラグインがなかったのでViveなど一部のHMDで移行の障害になっていましたがやっとリリースされそうな動きが見えてきました。

https://forum.unity.com/threads/xr-plugins-and-subsystems.693463/page-5#post-5562637
image.png

以下はInputSystemのPull Requestとそれを作った開発者のGitHubアカウントにあるテストパッケージです。

image.png

導入方法

リリース前なので導入しても動作保証はありません。

manifest.jsonに追加

UnityプロジェクトフォルダのPackages/manifest.jsonに以下の1行を追加するとUnityが自動でダウンロードします。
今はmasterブランチよりTestBranchの方が進んでいるので#TestBranchを指定します。

{
  "dependencies": {
    "com.valve.openvr": "https://github.com/zite/TestPackage.git#TestBranch",
    ...
  }
}
Enter fullscreen mode Exit fullscreen mode

Pakcagesフォルダにコピー

TestPackageリポジトリをzipでダウンロードしたりgit cloneしてPackagesフォルダに配置するとUnityプロジェクトに取り込まれます。
image.png

OpenVR XR Pluginが認識されるとPackage Managerに追加されます。
image.png

OpenVR XR Pluginの設定

image.png

image.png
image.png
image.png

Image of Datadog

Get the real story behind DevSecOps

Explore data from thousands of apps to uncover how container image size, deployment frequency, and runtime context affect real-world security. Discover seven key insights that can help you build and ship more secure software.

Read the Report

Top comments (0)

Postmark Image

"Please fix this..."

Focus on creating stellar experiences without email headaches. Postmark's reliable API and detailed analytics make your transactional emails as polished as your product.

Start free

👋 Kindness is contagious

Explore a trove of insights in this engaging article, celebrated within our welcoming DEV Community. Developers from every background are invited to join and enhance our shared wisdom.

A genuine "thank you" can truly uplift someone’s day. Feel free to express your gratitude in the comments below!

On DEV, our collective exchange of knowledge lightens the road ahead and strengthens our community bonds. Found something valuable here? A small thank you to the author can make a big difference.

Okay