Creating the controller script

In this section, we are going to create a script that will control the scene and allow our users to change the textures of the seats. Let's get started:

  1. In @MyAssets|Scripts, create a new C# script by right-clicking and selecting Create|New C# Script. Call it MainController and double-click on it to open it in Visual Studio:
Creating a new C# Script in the @MyAssets/Scripts folder
  1. If you installed Unity by following the steps in Chapter 2, Introduction to Unity for AR Development, you will already have Visual Studio installed and configured, and it will open the script with the default code, as shown in the ...

Get Enterprise Augmented Reality Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.