Game Development Reference
In-Depth Information
Figure 5-4. Per-platform texture settings
Beginning the Universal First Person Controller
Unity ships with two First Person Controller prefabs, the default First Person Controller included in
the Standard Assets (Character Controller) package, and the mobile First Person Controller, included
in the Standard Assets (Mobile) package. The crucial difference between these two controllers is
their handling of user input. The desktop controller expects user input from keyboards and mice
exclusively, and the mobile controller from mobile devices exclusively; and neither accepts input
from the other method. Our aim here, therefore, is to forge a bridge between these two controllers,
resulting in a new controller prefab that automatically handles input from any device, desktop
or mobile. Before getting started, be sure to import both the desktop and mobile First Person
Controllers into your project, if they're not imported already (see Figure 5-5 ).
 
Search WWH ::




Custom Search