O'Reilly logo

Mastering Oculus Rift Development by Jack Donovan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating custom Unity input axes

So far, you've coded your own input and used predefined axes in Unity's InputManager, but you haven't yet defined your own axis. In this section, we'll do this by adding a new axis called Reset, which we'll tie in with a dummy manager to find all practice dummies in a scene and set all of their nodes back to red.

Open the InputManager again by mousing over Project Settings in the Edit menu and selecting Input. Click on in the Size field directly beneath Axes and add one to the total count; in the following screenshot, we had 26 axes, so we updated it to 27:

Creating custom Unity input axes

Now, scroll to the bottom of the list of axes and you'll ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required