Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Enterprise Augmented Reality Projects

You're reading from   Enterprise Augmented Reality Projects Build real-world, large-scale AR solutions for various industries

Arrow left icon
Product type Paperback
Published in Dec 2019
Publisher Packt
ISBN-13 9781789807400
Length 388 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Jorge R. López Benito Jorge R. López Benito
Author Profile Icon Jorge R. López Benito
Jorge R. López Benito
Enara Artetxe Gonz√°lez Enara Artetxe Gonz√°lez
Author Profile Icon Enara Artetxe Gonz√°lez
Enara Artetxe Gonz√°lez
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Introduction to AR and How It Fits the Enterprise FREE CHAPTER 2. Introduction to Unity for AR Development 3. AR for Manufacturing with ARCore 4. AR for Training with WebAR and Augmented Class! 5. AR for Marketing with EasyAR 6. AR for Retail with Vuforia 7. AR for Automation with Vuforia and AR Glasses 8. AR for Tourism with ARKit 9. Other Books You May Enjoy

Scripting – first example in C#

To see all the potential of scripts in Unity, we are going to take a look at the script we created in the previous section, CubeHandler.cs. As its name suggests, we are going to add some code to it to manipulate the cube in the scene.

Double-click on the name of the script in the Project window to open it in Visual Studio.

If you already had Visual Studio installed on your computer before you installed Unity, it's possible that Unity won't detect it automatically when double-clicking on the script. If so, you'll have to go to Edit|Preferences and go to External Tools. From there, select the path to the .exe file of Visual Studio:

Preferences window with Visual Studio assigned as the External Script Editor

Upon opening the script, you will see the following auto-generated code:

using System.Collections;
using System...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime