0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Unity VR開発でPC操作によってデバッグを行う

Posted at

はじめに

VRデバイスではなく、PC操作により、VR操作をするための方法を調べたので記事にします。

シミュレーターについて

シミュレーターだけ知りたいという方のために、先にシミュレータについて書きます。

調べたところ、以下の二つが該当しました。

今回の記事では、XR Interaction Toolkitを使う方法を紹介します。

手順

  • Package Manager - Unity Registry - XR Interaction Toolkitをインストール
    スクリーンショット 2024-07-05 182631.png
  • SamplesのStarter AssetsとXR Device Simulationをインポート
    スクリーンショット 2024-07-05 182643.png
  • Assets/Samples/XR Interaction Toolkit/{version}/Starter Assets/Prefabs/XR Interaction Setup.prefabをシーンに配置する
  • Assets/Samples/XR Interaction Toolkit/{version}/XR Device Simulator/XR Device Simulator.prefabをシーンに配置する

これで実行するとシミュレーション操作ができます。
(シーンにMainCameraが配置されている場合は消しておきましょう)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?