/VRRecording

Ability to record object movements in VR and play it back so a user can watch from any angle.

Primary LanguageC#

VR/AR Recording

Author(s)

Quinton Hoffman

How to use

  1. Load project in Unity
  2. If recording (on PC), set isRecording to true on the RecordingController game object. Otherwise, set it to false.
  3. Press play, use the arrow keys or w, a, s, d to move around and the mouse to look. If using AR (currently only supported on Android), connect the Android to the computer, make sure USB debugging is enabled on the Android, and click File->Build and Run
  4. In AR, find a flat area, adjust the scale of the scene using a slider, and place the scene by pressing the button. Make sure when build isRecording is set to false when building for AR.

How to modify

  • If adding an object that should be recordable, add the RecordedObject prefab and replace the default mesh with your mesh.
  • mSceneManager controls which obejcts are in the PC version or AR version. when adding something only for AR, set Set Active to true.
  • The script ARTapToPlace.cs contains the code that controls placing objects in the AR app.
  • The ARCanvas displays UI and information in the AR application.