You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/controllers.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,12 +51,11 @@ To create a new `WebVRControllerInputMap`, use `Asset > Create > WebVRController
51
51
52
52
# Configure Unity Input Manager
53
53
54
-
To get up and running using pre-configured Input Manager settings, copy `Project Settings/InputManager.asset` from this repo into your own project.
54
+
To get up and running using pre-configured Input Manager settings, follow [Step #5, Add Input Manager Settings to your Project](project-setup.md#5-add-input-manager-settings-to-your-project) in the [Setting up a Unity project for WebVR](./project-setup.md) guide.
55
55
56
-
You can also choose to manually configure the Input Manager by using
57
-
`Edit > Project Settings > Input`
56
+
You can also choose to manually configure the Input Manager by using `Edit > Project Settings > Input`
58
57
59
-
Below is an example of a Unity Input Manager entries that map to `WebVRControllerInputMap`configuration as shown above.
58
+
Below is an example of Unity Input Manager _input axes_that correspond to the _Unity Input Name_ in the `WebVRControllerInputMap` as [shown above](#configuring-a-webvrcontrollerinputmap-asset).
Copy file name to clipboardExpand all lines: docs/project-setup.md
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,14 @@
1
1
# Setting up a Unity project for WebVR
2
2
3
-
In this tutorial, we go through the steps of a basic project setup using the WebVR Assets.
3
+
**There are two ways to start a WebVR enabled project using Unity.**
4
+
5
+
1.**[Download the example project](https://github.com/mozilla/unity-webvr-export/archive/master.zip).**
6
+
7
+
This is the simplest option, to do this, [download the project](https://github.com/mozilla/unity-webvr-export/archive/master.zip) and open in Unity. You can follow steps from [step #7](#7-build-your-project-to-webvr) onwards to build the project to WebVR.
8
+
9
+
2.**[Start by Creating a new Unity 3D Project](#1-create-a-new-unity-3d-project).**
10
+
11
+
In this tutorial, we cover option 2, starting from new, stepping through each step from creating a new Unity project, adding the WebVR Assets, then building to WebVR.
4
12
5
13
## 1. Create a new Unity 3D project.
6
14
@@ -14,7 +22,13 @@ Open the menus: `File > Build Settings`
14
22
15
23

16
24
17
-
## 3. Download the assets from the Unity Asset store.
25
+
## 3. Enable Virtual Reality support in Unity.
26
+
27
+
See [In-editor VR playback for rapid testing](./xr-testing.md) for full steps.
28
+
29
+

30
+
31
+
## 4. Download the assets from the Unity Asset store.
18
32
19
33
**[Unity Asset Store page](https://assetstore.unity.com/packages/templates/systems/webvr-assets-109152).**
20
34
@@ -24,7 +38,7 @@ Alternatively, download and install the [`WebVR-Assets.unitypackage`](https://gi
24
38
25
39

26
40
27
-
## 4. Add the WebVR prefab to your scene.
41
+
## 5. Add the WebVR prefab to your scene.
28
42
29
43
Disable the standard default camera, so that it does not interfere with the cameras used in the WebVR prefab.
The prefab contains hand controllers, VR Camera setup and other components needed for your game to work with WebVR.
40
54
41
-
## 5. You're Unity project is setup. Play to see the result!
55
+
## 6. Add Input Manager settings to your project.
56
+
57
+
Copy [`InputManager.asset`](https://github.com/mozilla/unity-webvr-export/raw/master/ProjectSettings/InputManager.asset) into your Project `/ProjectSettings` folder. This will add pre-configured Unity Input Manager input axes needed for controllers to work.
58
+
59
+
See [Controllers and Input System](./controllers.md) for more details about how this works.
60
+
61
+
## 7. You're Unity project is setup. Play to see the result!
42
62
43
63

44
64
45
-
## 6. Build your project to WebVR
65
+
## 8. Build your project to WebVR
46
66
47
67
### Select the WebVR template from player settings.
0 commit comments