This is a Unity project for a VR (Virtual Reality) escape game from an office of my own creation. Please note that this project is intended for Quest as a HMD (Head-Mounted Display) and cannot be run on other devices.
Office Room EscapeはUnity3Dで作成したオフィスからのVR脱出ゲームです.難易度は少し高めであり,頭を使うような謎が出現します.対象としているHMDはQuestとなっており,Quest2及びQuest3において,問題なく実行出来ることは確認済みです.Questを対象としたScriptとなっているため,その他HMDでは実行することが出来ませんのでご注意ください.また,Oculus Integrationは本リポジトリに含まれていないため,本branchをclone後に各々でimportして頂きますよう,よろしくお願いします.詳細な手順は以下に示してあります.
-
projectのclone
- cloneしたい階層へcmdで移動.
- 以下のコマンドを用いて本branchをlocal repositoryへclone
git clone https://github.com/MSTS-S/Unity-OfficeRoomEscape.git
-
projectを開く
- (Unity Hubを用いている場合)Unity Hubでprojectをリストに追加し,projectを開く.
- projectを開いている最中に,以下の画像ようなメッセージが表示されるが,ignoreを選択.
- このメッセージはOculus Integrationが本repositoryに含まれていないことによるモノ.
-
Oculus Integrationのimport
- project起動段階では,Oculus Integrationの不足によって下の図のようにエラーメッセージが吐かれている.
- そこで,Window > Package Managerを選択し,Oculus Integrationをimportする(初めてimportする場合,Oculus Integrationから自身のEditorへimportする).
- import後にconsoleを確認し,project起動後に表示されていたエラーがないことを確認.
-
Platformの選択
- HMD(Quest)でBuild And Runする場合,File > Build Settings...を選択後,AndroidへSwitch Platformを行う(Quest Linkを用いて実行する場合,この手順は不要).
- Build TargetがAndroidへ切り替わったら,Build And Runを押下.
-
その他
- 本ProjectのSceneはAssets > WorkSpace > Sceneの階層化に配置されている.
- 空間CGModelのみの使用を行いたい場合,Scriptはすべて削除することを推奨(OVRクラスを使用しているScriptが複数あるため).
- Scene遷移のためのスクリプトは自作する必要あり.